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.
2 parents 10b026d + 3bad424 commit 57c7f35Copy full SHA for 57c7f35
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,5 @@ protected function getObjectKeyFromListType($type)
101
throw new IntercomException("Unknown list type returned ({$type}). Unable to use iterator to paginate");
102
}
103
104
-}
+}
105
+
0 commit comments