How to validate API integration fields?


#1

Hi all!

We’re building an integration project which will (among all other things) ask the user to perform an OAuth2 login. This said, in the first phase of the integration (ie as long as we aren’t ready to have HubSpot feature our integration), we need to acquire and validate a series of HubSpot properties:

  • client_id and client_secret (used in POST /oauth/v1/token)
  • portal_id and application_id (needed to insert timeline entries, PUT /integrations/v1/:application‐id/timeline/event)

Is there a way to validate them?

Thank you,

Leonardo