{"action":"opened","issue":{"url":"https://api.github.com/repos/ryanwinchester/hubspot-php/issues/68","repository_url":"https://api.github.com/repos/ryanwinchester/hubspot-php","labels_url":"https://api.github.com/repos/ryanwinchester/hubspot-php/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/ryanwinchester/hubspot-php/issues/68/comments","events_url":"https://api.github.com/repos/ryanwinchester/hubspot-php/issues/68/events","html_url":"https://github.com/ryanwinchester/hubspot-php/issues/68","id":183713987,"number":68,"title":"OAuth2 support","user":{"login":"lukevers","id":1558388,"avatar_url":"https://avatars.githubusercontent.com/u/1558388?v=3","gravatar_id":"","url":"https://api.github.com/users/lukevers","html_url":"https://github.com/lukevers","followers_url":"https://api.github.com/users/lukevers/followers","following_url":"https://api.github.com/users/lukevers/following{/other_user}","gists_url":"https://api.github.com/users/lukevers/gists{/gist_id}","starred_url":"https://api.github.com/users/lukevers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukevers/subscriptions","organizations_url":"https://api.github.com/users/lukevers/orgs","repos_url":"https://api.github.com/users/lukevers/repos","events_url":"https://api.github.com/users/lukevers/events{/privacy}","received_events_url":"https://api.github.com/users/lukevers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-18T15:06:30Z","updated_at":"2016-10-18T15:06:30Z","closed_at":null,"body":"Recently, HubSpot rolled out their new authentication which is OAuth2. OAuth1 is still currently supported, and will be for quite some time since they're just now making the transition (I sent an email asking someone about that and got that confirmation), so both forms of OAuth should be supported.\r\n\r\nhttp://developers.hubspot.com/docs/methods/oauth2/oauth2-overview\r\n\r\nAs mentioned in #50, I don't think this library should have anything to do with generating the access tokens or refreshing them, but just another way to sign the request. The difference here is that instead of signing requests `?access_token=xxx` we now sign them with an [Authorization header](http://developers.hubspot.com/docs/methods/oauth2/using-access-tokens):\r\n\r\n```\r\n```\r\n\r\nI'm opening this ticket in case anyone stumbles upon this library in the time that I open this ticket and the time that I submit a pull request."}}
{"actor":{"display_login":"lukevers"}}