OAuth with no UI


#1

I need to call the APIs for clients and companies in order to import the data in a database. I have created a developer account and an app.From the official documentation I understand that I need to use OAuth in order to use this in production, not a Hapikey, but I need to call the API without having a user interface (in order to redirect the user and for him to grant the access to the account).How could I achieve this in Python?


#2

Hi @andreeagp1 welcome! I don't have any examples retrieving Oauth Tokens and making requests using python, so I'll leave this open to the community to answer. That said, to get you started I'd check out the QuickStart Guide: https://developers.hubspot.com/docs/methods/oauth2/oauth2-quickstart#quickstart which is written in NodeJS. This should get you started.