I'm new to the Hubspot API's (and API processing in general). I was able to access a page of Deals using the version (v3) API. I successfully got a page of deals (ie 100) using BOTH of the following calls
I've tested this process in BOTH node.js AND Google App Scripts. My question is this: Can someone point me to a simple example of how to paginate through the Deal object so I can process ALL the deals? (not just 100)? I've seen examples of how to do this, but they seem to all point to using the older v1 API methods. I want to be consistent and use the latest API calls. (v3)
Thanks for your response! Yes, I actually did what you said in your first suggestion (using the stack overflow post and replacing version v1 with v3 constructs. My code doesn't follow the recursive function logic from the stack overflow sample - I used an older "Do While" approach and set a flag to stop looping depending on whether the API returned a "next page". Again - I'm an "older" developer from the 1980s 90, and 2000s. Mostly traditional back-end Database, top-down structured programming, and development. The newer API and Web tools, REST API are very new to me - but I'm learning pretty quickly. Finally - thanks for pointing out the other two (nodejs) references. I've seen one of them before, but I did not see that special git-hub project for hubspot objects. That looks very interesting. Learning a lot about Google Apps Scripts and node.js these days. Cool stuff. Sorry for rambling. Us tech people like to blab sometimes about boring stuff! Take care!
I believe I saw you on another thread where I posted a link to a stack overflow thread that had the answer. In the code, they are using the older v1 when the varial url is set. You can replace that with the v3 version as well as update any other parameters you would like to be returned.
Thanks for your response! Yes, I actually did what you said in your first suggestion (using the stack overflow post and replacing version v1 with v3 constructs. My code doesn't follow the recursive function logic from the stack overflow sample - I used an older "Do While" approach and set a flag to stop looping depending on whether the API returned a "next page". Again - I'm an "older" developer from the 1980s 90, and 2000s. Mostly traditional back-end Database, top-down structured programming, and development. The newer API and Web tools, REST API are very new to me - but I'm learning pretty quickly. Finally - thanks for pointing out the other two (nodejs) references. I've seen one of them before, but I did not see that special git-hub project for hubspot objects. That looks very interesting. Learning a lot about Google Apps Scripts and node.js these days. Cool stuff. Sorry for rambling. Us tech people like to blab sometimes about boring stuff! Take care!