I want to use the API to submit new contacts to our Hubspot account. We’ll have a form on our website, which our clients will fill out. When the form is submitted, we’ll send the form data to the Hubspot API to create a new contact (or something similar).
I have ‘installed’ the app to get an access token (the app here being our website).
I’m confused as to how we’re supposed to programatically maintain an access token. This whole process seems to be built around the idea of some user installing an app, then the user goes through a manual authorization process through the browser.
We need a way for our website app to maintian an access token for Hubspot, without interruptions. So when we deploy an update to the website, and the app restarts, we need to get that access token without having a person go through an authorization process through the browser.
Can anyone give me some ideas for handling this, or direct me to some resources?