activecollab

Get pagination results in Active Collab API

ぐ巨炮叔叔 提交于 2019-11-28 09:06:46
问题 I have just discovered you can get pagination results through the api by passing in the page parameter like so: $projects = $client->get('projects/147/time-records?page=3')->getJson(); Is there a way of knowing how many time records a project has so I know how many times I need to paginate? Alternatively, how would I go about retrieving several pages worth of data - i'm struggling with the code! 回答1: I have created an issue on Github - will await a response. For now, I do the following: //