APIs & Integrations

stominari
Teilnehmer/-in

Best practices for authenticating to hubDB from external apps

lösung

Hello. I am posting for the first time.

 

I would like to consult about API authentication method.
I'm trying to develop a batch process that accesses every hour to synchronize HubDB with an external database. In that case, the following three points can be considered as authentication methods, but are there only options? Or is there a better way?

 

1. API Key
This is scheduled to be abolished in 2022/11, so NG


2.Private APP AccessToken
NG because scope cannot be granted for HubDB


3.oauth2
AccessToken is manually acquired for the first time, and after that the expiration date expires after a certain period of time, so Use RefreshToken to reacquire the token periodically. If the process is interrupted for some reason, it is necessary to manually obtain the AccessToken again.

 

Thank you.

0 Upvotes
1 Akzeptierte Lösung
Teun
Lösung
Trendsetter/-in | Diamond Partner
Trendsetter/-in | Diamond Partner

Best practices for authenticating to hubDB from external apps

lösung

Hi @stominari ,

 

I would advise a private app token, and I am sure you can set the right scope for HubDB, cause I've been using it for a while



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
2 Antworten
Teun
Lösung
Trendsetter/-in | Diamond Partner
Trendsetter/-in | Diamond Partner

Best practices for authenticating to hubDB from external apps

lösung

Hi @stominari ,

 

I would advise a private app token, and I am sure you can set the right scope for HubDB, cause I've been using it for a while



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes
stominari
Teilnehmer/-in

Best practices for authenticating to hubDB from external apps

lösung

Hi @Teun ,

 

Thank you for your response!
i will try it with private app.

 

0 Upvotes