I have earned points several times trough 3rd party bookings.
I just gave them my CC card when I checked in with the voucher and told them 'for the points...' They have always given me points on the stay but this was always at the same hotel though... maybe the staff didn't realise I am not entitled to them.