hubspot-php icon indicating copy to clipboard operation
hubspot-php copied to clipboard

Support for HubSpot's oAuth2.0 URL and new Endpoints

Open Soben opened this issue 9 years ago • 4 comments

The URL for HubSpot's oAuth 2.0 handling is api.hubspot.com ... and you show an argument for base_url but it does not appear to be used anywhere in your src/ folder for override of the base_url...

Also, after authenticating the user, I get a CODE that I need to get refresh and authentication tokens from the api at api.hubspot.com/v1/tokens, which isn't an endpoint you offer accessibility to.

Soben avatar Jul 27 '17 15:07 Soben

Re: the URL... I could just be an idiot and it still is api.hubapi.com ... but the /token endpoint remains elusive.

Soben avatar Jul 27 '17 15:07 Soben

Hi, I had the same issue. I just added support for that here: https://github.com/ryanwinchester/hubspot-php/pull/110

siremi avatar Aug 02 '17 20:08 siremi

Thanks Siremi, giving that a whirl now

Soben avatar Aug 03 '17 12:08 Soben

thanks

ryanwinchester avatar Aug 08 '17 20:08 ryanwinchester