简体   繁体   中英

How to retrieve the latest engagements from hubspot using Engagements API

I am trying to retrieve all engagements using hubspot engagements api. https://api.hubapi.com/engagements/v1/engagements/paged?hapikey=xxxxxx

As of today which is Dec 27, I am getting engagements till Nov 30. Is there a way to get the latest results.

Thanks

I think this is happening because of the pagination. In a single response up to 250 records will be returned. So, if you have more than that the rest will be in another page for which you will have to make another request.

In your response check if "hasMore" is true, if it is that means there are more engagements than what you see. You can use "offset" to get the rest of the data.

Here's the link to documentation for further info.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM