HubSpot / hubspot-api-php

HubSpot API PHP Client Libraries for V3 version of the API
Apache License 2.0
193 stars 81 forks source link

do not use "access-token" as default token (as this token exists) #363

Closed odoucet closed 3 months ago

odoucet commented 3 months ago

I lost several hours of debugging on my code, because I was still using "access-token" as token used and the error message was :

The OAuth token used to make this call expired 19884 day(s) ago.

This was very confusing because I thought this was an issue with my token.

If you try to use token "thisisatesttoken", the error is

Authentication credentials not found.

This error message makes more sense. So please, dont use "access-token" in documentation.

ksvirkou-hubspot commented 3 months ago

Hi @odoucet Do you mean the README or the other documentation?

odoucet commented 3 months ago

the README file :)

ksvirkou-hubspot commented 3 months ago

Done Thank you for reporting the issue.