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

Schema Core API still uses hapikey #132

Closed
anka opened this issue Oct 17, 2022 · 4 comments
Closed

Schema Core API still uses hapikey #132

anka opened this issue Oct 17, 2022 · 4 comments

Comments

@anka
Copy link

anka commented Oct 17, 2022

Using the Core API of hubspot.crm.schemas does not work in version 6.0.0 since it sill uses thehapikey for authentication.

The following code using a token of a private app:

client = hubspot.HubSpot(access_token=os.environ['HUBSPOT_API_TOKEN'])
api = client.crm.schemas.core_api
api.create(object_schema_egg=object_schema)

results in

HTTP response body: {"status":"error","message":"Authentication credentials not found. 
This API supports both API Key and OAuth 2.0 authentication and you can find more 
details at https://developers.hubspot.com/docs/methods/auth/oauth-overview",
"category":"INVALID_AUTHENTICATION"}

Please support oauth2 authentication for all schema APIs in the library too. See pull request #130.

@javieralesojeda
Copy link

Thanks for pointing this out @anka It would be great to get this resolved as Private Apps are the only way to use Hubspot's API now. I have been following this thread for a couple of weeks but doesn't seem to get a resolution.

@anka
Copy link
Author

anka commented Oct 19, 2022

@javieralesojeda you are welcome. You can use our fix in our private repo, which is based on the current master branch of the library.

In yourrequirements.txt

hubspot-api-client @ git+https://github.com/jademind/hubspot-api-python@a9b4f85c9bd63ab7bc819b6e9fbf56b66acb8740

@javieralesojeda
Copy link

Thanks a lot @anka

@cdelacombaz
Copy link

This has been fixed on version 7.0.0

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

4 participants