You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @FahadNoor I was trying to get the jobs data of an organization, and in the params dictionary it is automatically sending after_id, even when the limit is 2. Everytime limit 2 and updated after_id is being sent to crunchbase, this leads to continuous data pull. I tried to create custom Pagination and and updated the query builder a little bit to only send limit not after_id along with it. But could you please explain what can be a solution?
card_fields_ids= ['is_current', 'person_identifier', 'identifier', 'short_description',
'organization_identifier', 'created_at', 'started_on', 'ended_on',
'employee_featured_order', 'title', 'updated_at', 'job_type']
# Access the organizations APIorg_api=pycb.organizations_api()
# Define the cards for organization jobscards=Cards.Organizationcall_limit=1# Fetch the organization entity dataentity=org_api.get_cards(
entity_id=Company_2_look_4,
card_id=cards.jobs,
card_field_ids=card_fields_ids,
limit=call_limit
)
output:
With params: {'limit': 1, 'card_field_ids': 'ended_on,title,short_description,organization_identifier,started_on,employee_featured_order,person_identifier,created_at,job_type,updated_at,is_current,identifier'}
Response Status Code: 200
and the output continues with updated next_id and previous_id
Hi @FahadNoor I was trying to get the jobs data of an organization, and in the params dictionary it is automatically sending after_id, even when the limit is 2. Everytime limit 2 and updated after_id is being sent to crunchbase, this leads to continuous data pull. I tried to create custom Pagination and and updated the query builder a little bit to only send limit not after_id along with it. But could you please explain what can be a solution?
right now my custom pagination code is below:
The text was updated successfully, but these errors were encountered: