-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Labels
Description
Something like this:
$allTheStatements = $statementsResponse->content->getStatements();
$moreStatementsURL = $statementsResponse->content->getMore();
while (!is_null($moreStatementsURL)) {
$moreStmtsResponse = $this->moreStatements($moreStatementsURL);
$moreStatements = $moreStmtsResponse->content->getStatements();
$moreStatementsURL = $moreStmtsResponse->content->getMore();
//Note: due to the structure of the arrays, array_merge does not work as expected.
foreach ($moreStatements as $moreStatement) {
array_push($allTheStatements, $moreStatement);
}
}