get the next available results from the REST API query

Hi

How can I get the next available results from the REST API query?

I need to access a couple of thousand objects and I am limited by the max items for a single query.

I get an object that looks like below from the GET request that has the key MoreResults = True.

Now I want to get the the next object using a while loop until there are no more results.

My query looks like this https://m-files-server.com/REST/objects?o=102&p1185=2

How can I get the next results until the MoreResults key is False?

What do I write in the query?

{'Items': [{'AccessedByMe': '1899-12-30T00:00:00Z',
            'AccessedByMeUtc': '1899-12-30T00:00:00Z',
            'BaseProperties': [],
            'CheckedOutAt': '1601-01-01T00:00:00Z',
            'CheckedOutAtDisplayValue': '1.1.1601 0:00',
            'CheckedOutAtUtc': '1601-01-01T00:00:00Z',
            'MORE PROPERTIES......'],
 'MoreResults': True}

Parents Reply Children
No Data