We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10b026d commit c4b4cd4Copy full SHA for c4b4cd4
src/Intercom/Model/Iterators/AbstractPageIterator.php
@@ -29,7 +29,7 @@ protected function sendRequest()
29
$result = $this->command->execute();
30
31
// Parse the next token
32
- $this->nextToken = (isset($result['next_page'])) ? $result['next_page'] : false;
+ $this->nextToken = (isset($result['pages']['next'])) ? $result['pages']['page'] + 1 : false;
33
34
// Set the total results
35
$this->totalResults = $result['total_count'];
@@ -101,4 +101,4 @@ protected function getObjectKeyFromListType($type)
101
throw new IntercomException("Unknown list type returned ({$type}). Unable to use iterator to paginate");
102
}
103
104
-}
+}
0 commit comments