Skip to content

README has incorrect oauth usage since v10 #377

Closed
@LucidDan

Description

@LucidDan

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions