Added a method $messages->getPageToken() to enable developers to fetch pageToken.
Also updated README accordingly
pageToken is important when the developer needs to cache the result with a unique identifier.
Caching is the recommended behavior when using APIs.
Generally speaking, it is a bad practice to use API for pagination. It is slow and costly. Therefore, it is recommended to retrieve the cached result moving between pages and only flush the cache when have to.
$messages->getPageToken()
to enable developers to fetchpageToken
.pageToken
is important when the developer needs to cache the result with a unique identifier.Caching is the recommended behavior when using APIs.
Generally speaking, it is a bad practice to use API for pagination. It is slow and costly. Therefore, it is recommended to retrieve the cached result moving between pages and only flush the cache when have to.