emorikawa / linkedin-oauth2

Ruby wrapper for the LinkedIn OAuth2 API
Other
70 stars 86 forks source link

profile_path: allow fields option #45

Closed elquimista closed 6 years ago

elquimista commented 6 years ago
api = LinkedIn::API(access_token)
api.profile # returns default linnkedin response

api.profile(fields: 'id,first-name,last-name,email-address') # returns specified fields only

I made this change because I couldn't find a way to get email address with current version 1.0.0

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 26eb32ffb918b71c4d7560f6d1f04f5e32d85751 on dFusedInc:master into ceb63460b8b45b7e00766ae3a4c3e361d76c6ffc on emorikawa:master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 26eb32ffb918b71c4d7560f6d1f04f5e32d85751 on dFusedInc:master into ceb63460b8b45b7e00766ae3a4c3e361d76c6ffc on emorikawa:master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 26eb32ffb918b71c4d7560f6d1f04f5e32d85751 on dFusedInc:master into ceb63460b8b45b7e00766ae3a4c3e361d76c6ffc on emorikawa:master.