Hello,
I am attempting to integrate the one of the forms on a clients website of mine to use create contacts when the form is submitted. Currently I am creating a new access token manually and replacing daily because I can’t seem to figure out this OAuth process for simple API calls.
This is a simple brochure site that has a single form and the users should not need to sign into Infusionsoft. I know there has to be a way to do this. I need to somehow authenticate the domain ( app ) without the users who are viewing the site / submitting the form that its connected. I am saving the refreshToken in the database and requesting a new refresh token and that is all working great. When I pass the accessToken back to the front end JS to make an HTTP Post request to: https://api.infusionsoft.com/crm/rest/v1/contacts I get Developer Inactive.
When I generate a token manually at https://developer.infusionsoft.com/docs/ to test the api with my client ID and client secret and use that token that is being used to test the API it works perfectly.
Not sure what is going on, I should just be able to refresh the token right?