PHP Offset

Does anyone know how to perform an offset in the PHP SDK?

I’m trying to grab more than 1000 contacts with $infusionsoft->contacts()->all();, but I’m hit with only 1000, and I cannot find documentation or figure out how to do an offset.

.

Don’t use the contact object. Use the Data object

https://developer.infusionsoft.com/docs/xml-rpc/#data-query-a-data-table

That works… but not quite the answer I was looking for. Haha.

There was this issue on GitHub:

However, I don’t think that the solution they issued is correct, or I can’t figure out how to use it.

@Jacky_Wong there is no automatic paging built into the PHP SDK yet. You can use $infusionsoft->contacts()->where('limit', 1000)->where('offset', 1000)->get(); if you need additional pages.