Update the library to support the OAuth 2.0 authorization#7
Update the library to support the OAuth 2.0 authorization#7suhoij wants to merge 2 commits intoDatahero:masterfrom
Conversation
… the "Authorization" header.
|
@suhoij - thanks for suggesting this change to support Hubspots OAuth 2 functionality. Some suggestions on the fix. Per their docs, you should only send it in the auth header (oauth) or on the string (hapikey): http://developers.hubspot.com/docs/methods/oauth2/using-access-tokens Can you adjust to put this into the headers construction that gets passed in as a group? Moving up the auth params and updating comments? Plus removing the inclusion on the URL string itself as per the new docs? |
|
@jzabel Sure. I could clean it up to correspond only the latest API. |
…oving the access_token from query string.
|
@jzabel I've removed the authParams and moved the api_key to the finalParams. Also the comment was updated. Please, check. |
I've added the "Authorization" header in order to support OAuth 2.0 authorization flow.