Open fromfarland opened 1 year ago
Just saw that there is another issue open about this, sorry! https://github.com/HubSpot/hubspot-api-python/issues/135
Would still be interested in ideas though – I would really like to keep using associations.batch_api.read
because it works for all object types.
Hi @fromfarland. We working on it. It going to added as soon as we can.
@alzheltkovskiy-hubspot Good to know, thank you!
Hi, is there an update or an ETA here already? :) (The restriction to 100 association results is really hindering how we use the API and theferore renders our implementation somewhat pointless currently.)
Hi everyone could you check the latest version?
Hi @alzheltkovskiy-hubspot, thanks for the update! I checked out the latest version, the response now contains the missing paging
key which is great!
However, I did not figure out how use this as a parameter / paginate through results using associations.batch_api.read
. Looking at the code briefly, it seems like the parameter is just not available in the function? So currently I know that the results are paginated, but can't do anything about it 😅 Am I missing something?
Hi @alzheltkovskiy-hubspot, it seems to me like this still is not really usable because there is no way to include the after
(paging-related) key in the batch_api.read
request.
Can you help out here? Thanks!
Hi! My first issue here - after being able to figure a lot of things by myself, I finally ran into something that I can't seem to get my head around.
Is there a way to get more than 100 results from
associations.batch_api.read
? After checking the repo, it seems to me that the function does not support pagination; or rather, the API response does not include apaging
key like others do.Code snippet explanation: I wrote a function
get_batch_associations
that takes a list of IDs for a certain object type and gets all the associations to another object type. (This calls another functionchunk_list
that takes a list of IDs, then splits them into chunks of 100.)All ideas are much appreciated!