I've created an app and I have integrated it with a Test HubspotAccount while I was developing the app .
I have my backend that get info from HS account and creates deals, etc.. Everything working fine. But now I have installed the HS app on the production HS account and I have no idea how to differenciate on accounts that have my app installed. 😨.
So how I can differenciate which account I get information from or which account I create a deal in 🙈
I would recommend that you create a separate developer app only installed to your test account. You can then create another developer app for production only. This will get you two separate client IDs and secrets. One pair goes to your local environment and the other to your production server.
I am sure there is another way of checking the payload to determine the HubSpot account, but the above method is easier and allows you to focus on your integration more than where the request came from.
I would recommend that you create a separate developer app only installed to your test account. You can then create another developer app for production only. This will get you two separate client IDs and secrets. One pair goes to your local environment and the other to your production server.
I am sure there is another way of checking the payload to determine the HubSpot account, but the above method is easier and allows you to focus on your integration more than where the request came from.