We are a marketing service company aggregating datas from differents marketing channels for our client. Hubspot is one of this channel.
I would like to be able to retrieve contact/company associations. No issue doing that.
After inital setup, I would like to be able able tor etrieve on a daily basis new/modified associations. For doing so, I have setup a 2 steps workflow:
1) I retreive newly updated/created contacts ussing this endpoint: get_recently_updated_contacts
2) I retrieve associations for the contacts updated in the last 24 hours using this endpoint: get-associations
We run our script in AWS Lambda. Lambda has a limited running time of 900 seconds.
As hubpost API reqsuests rate limit is 10/seconds, I got an issue when more than around 8000 contacts were updated in the last 24 hours.
Questions:
- Am I using the right workflow ?
- Is there a way to retrieve newly created/deleted associations ?
- Is there a way to retrieve contacts for which a specific property has been updated ? (The association one in this case)
- Do I have to change job as I’m too bad as a developper ?
Thanks for your answers.