hubspot

Getting full list of contacts from Hubspot API

偶尔善良 提交于 2019-12-06 06:50:57
Hubspot's API allows you retrieve a list of contacts, however it only allows a max of 100 per call. I do that with this call: $contacts_batch1 = $contacts->get_all_contacts(array( 'count' => '100')); And then if I want to get the next 100 I do this: $offset1 = $contacts_batch1->{'vid-offset'}; $contacts_batch2 = $contacts->get_all_contacts(array('count' => '100', 'vidOffset'=>$offset1)); I am trying to get all the contacts without having to create a new variable each time I want the next 100. My first question would be how would I go about getting the vid-offset of the last set, and then how

Unable to loop through paged API responses with Python

徘徊边缘 提交于 2019-12-04 02:22:11
问题 So, i'm scratching my head with this one. Using HubSpot's API, i need to get a list of ALL the companies in my client's "portal" (account). Sadly, the standard API call only returns 100 companies at a time. When it does return a response, it includes two parameters which make paging through responses possible. One of those is "has-more": True (this lets you know if you can expect any more pages) and the other is "offset":12345678 (the timestamp to offset the request by.) These two parameters

Pass url parameters to a embedded forms/iframes on landingpages

对着背影说爱祢 提交于 2019-12-02 23:20:35
问题 I want to pass url parameters (hidden fields) to iframe/embedded forms on our Hubspot landing pages. The url parameters I want to pass to the Typeform are utm_source , email and referralcode . An example of a page I'm currently working on: <div class="typeform-widget" data-url="https://xxxxxx.typeform.com/to/xxxx" data-transparency="50" data-hide-headers=true data-hide-footer=true style="width: 100%; height: 600px;" > </div> <script> (function() { var qs,js,q,s,d=document, gi=d.getElementById

Unable to loop through paged API responses with Python

老子叫甜甜 提交于 2019-12-01 13:36:18
So, i'm scratching my head with this one. Using HubSpot's API, i need to get a list of ALL the companies in my client's "portal" (account). Sadly, the standard API call only returns 100 companies at a time. When it does return a response, it includes two parameters which make paging through responses possible. One of those is "has-more": True (this lets you know if you can expect any more pages) and the other is "offset":12345678 (the timestamp to offset the request by.) These two parameters are things you can pass back into the next API call to get the next page. So for example, the initial