Cannot use cursor based incremental API calls



Gepostet 08. Nov. 2023

Hi everyone,

I am trying to use cursor based incremental API. I write python code to make this. However, I got result unexpected. I want to use cursor based incremental to retrieve all records, per_page = 100. This is my code, please help me review it. 

url = "https://my_url/api/v2/incremental/tickets/cursor?per_page=100&cursor={my_cursor_pointer}"
and below is function that use to stop pagination by end_of_stream
        if 'meta' in data and not data['meta']['end_of_stream']:
            url = data['after_url']
        else:
            url = ''

Thank you for your support.



0

0

0 Kommentare

Anmelden, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post