googleapis / google-api-php-client

A PHP client library for accessing Google APIs
http://googleapis.github.io/google-api-php-client/
Apache License 2.0
9.31k stars 3.52k forks source link

PAGINATION - Next page token is always null ? #2571

Closed minhvb closed 4 months ago

minhvb commented 7 months ago

Hi team,

I'm using your library to fetch reviews from Play Store and reply to them, however, the getTokenPagination() function always return null. I'm not sure which part I was wrong.

Below is my code

$listReviews = $this->getGoogleService()->reviews->listReviews( $this->googleConfig->name, $opt, ); dd($listReviews->getTokenPagination());

And this is the way I get the service:

    try {
        $client = new Google_Client();
        $client->setAuthConfig(json_decode($this->googleConfig->json, true));
    } catch (Throwable $e) {
        LoggerUtils::logError($this->logger, $e, 'Failed to create Google client');

        throw $e;
    }

    $client->addScope(Google_Service_AndroidPublisher::ANDROIDPUBLISHER);
    $this->service = new Google_Service_AndroidPublisher($client);

    return $this->service;
Hectorhammett commented 4 months ago

Hello @minhvb! Thanks for reaching out.

Are you still having the same issue?

Hectorhammett commented 4 months ago

Closed due inactivity. Please let me know if you have any further questions. Feel free to leave a comment if the issue persists!