Please anyone can help me to sort the issue of how we do polling on hubspot because i have seen that on API guidelines of hubspot and also tested the apis that it has provided , most of the apis cannot contains any ‘param’ that poll either updated or newly created record according to two timestamps .
Any endpoints will work the same with with either hapikey= or access_token=, so you can use either form of authentication.
The GET /contacts/v1/lists/recently_updated/contacts/recent endpoint returns any contacts updated in the last 30 days, starting with the most recently updated records, and there isn’t a way to limit how far back the endpoint itself will go. If you’re checking for new records at midnight each day, you’d need to page backwards through the contacts until you get a "time-offset" in the response that is before midnight the previous night, at which point you’d have all of the contacts updated in the last 24 hours.
the let me know , the polled data which we got from 'http://developers.hubspot.com/docs/methods/contacts/get_recently_updated_contacts’
1 . Is it contains all contact records including that we saved into first time also ?
2 . Is it contains only those contact records from the last record that we had inserted into DB.
if yes , then OK
and if no , then what parameter shall i pass with API url that we will get only recent record from the last record of DB.
What objects are you trying to poll for? How you poll for new items is going to depend on what objects you’re looking at.
For Contacts, Companies, and Deals, there are specific endpoints that get recently created items. The endpoints start with the most recently created items, and you’d need to page backwards (as details on the documentation pages) till you reach the last time you polled for updates.
GET /contacts/v1/lists/recently_updated/contacts/recent - For a given portal, return all contacts that have been recently updated or created. A paginated list of contacts will be returned to you, with a maximum of 100 contacts per page, as specified...
Keep in mind that most of our endpoints have a limit to the number of items they’ll return in a single response, so you may need to page through the results even with endpoints that support filters.