Open yash85763 opened 3 months ago
Hi @yash85763, can you please share the code so that I can reproduce the issue? I am not clear on what exactly is the issue you are facing.
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 API
org_api = pycb.organizations_api()
# Define the cards for organization jobs
cards = Cards.Organization
call_limit = 1
# Fetch the organization entity data
entity = 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: