Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README has incorrect oauth usage since v10 #377

Open
LucidDan opened this issue Jan 22, 2025 · 1 comment
Open

README has incorrect oauth usage since v10 #377

LucidDan opened this issue Jan 22, 2025 · 1 comment
Assignees

Comments

@LucidDan
Copy link

The oauth API has changed, but the README hasn't been updated:

from hubspot.auth.oauth import ApiException

try:
    tokens = api_client.auth.oauth.tokens_api.create(
        grant_type="authorization_code",
        redirect_uri='http://localhost',
        client_id='client_id',
        client_secret='client_secret',
        code='code'
    )
except ApiException as e:
    print("Exception when calling create_token method: %s\n" % e)

The above doesn't work anymore - it should read api_client.oauth.tokens_api.create(...) instead.

@alzheltkovskiy-hubspot
Copy link
Collaborator

Hey @LucidDan. You are definitely right. We will fix this in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants