We are trying to run an incremental sync that should only bring data over for last 25 minutes. However, every time the sync starts, it fetches the entire data. How can I ensure that the data sync only focuses on the recent updates and not bring the entire dataset.
As per API guidelines, we have used the below API to get the deals. We have added “since” parameter in our request to get the last modified data based on unix time stamp.
Get Recent Deals | Deals API
GET /deals/v1/deal/recent/modified
“https://api.hubapi.com/deals/v1/deal/recent/modified?hapikey=demo&count=100&since=” + unixTimestamp
We are calculating time stamp as per below code.
Int32 unixTimestamp= ((Int32)(DateTime.UtcNow.AddDays(-1).Subtract(new DateTime(1970, 1, 1))).TotalSeconds).ToString()
