APIs & Integrations

PPSimon
メンバー

V3 paging missing next link

解決

Creating a search for companies

https://api.hubapi.com/crm/v3/objects/companies/search?&hapikey=
Documentation suggests I should get a link like 
"paging": {"next": {"after": "NTI1Cg%3D%3D","link": "?after=NTI1Cg%3D%3D"}

But get below

{"total":95,"results":[{"REDACTED"}],"paging":{"next":{"after":"10"}}}
How do I page based on this? Using Ansible but same results if I try python.
1件の承認済みベストアンサー
JBeatty
解決策
ガイド役 | Diamond Partner
ガイド役 | Diamond Partner

V3 paging missing next link

解決

Hi @PPSimon,


The paging.next.after value tells you what you should set the query parameter after to be. For example your like would go from:

https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=00000000-0000-0000-0000-000000000000

To this:

https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=00000000-0000-0000-0000-000000000000&after=100

 

Best,

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

元の投稿で解決策を見る

1件の返信
JBeatty
解決策
ガイド役 | Diamond Partner
ガイド役 | Diamond Partner

V3 paging missing next link

解決

Hi @PPSimon,


The paging.next.after value tells you what you should set the query parameter after to be. For example your like would go from:

https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=00000000-0000-0000-0000-000000000000

To this:

https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=00000000-0000-0000-0000-000000000000&after=100

 

Best,

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk