Fixed createToken method

Fixed the CreateToken method to set the resource and pairing code if the response from the API contains them.