public function continueSync($token): Result
    {
        if ($token instanceof Result) {
            if (!$this->isDeliveryApi && $token->isDone()) {
                throw new \RuntimeException('Can not continue syncing when using the Content Preview API.');
            }

            $token = $token->getToken();
        }

        $response = $this->client->syncRequest(['sync_token' => $token]);

        return $this->buildResult($response);
    }
public function continueSync($token): Result
    {
        if ($token instanceof Result) {
            if (!$this->isDeliveryApi && $token->isDone()) {
                throw new \RuntimeException('Can not continue syncing when using the Content Preview API.');
            }

            $token = $token->getToken();
        }

        $response = $this->client->syncRequest(['sync_token' => $token]);

        return $this->buildResult($response);
    }
public function continueSync ( $ token ) : Result { if ( $ token instanceof Result ) { if ( ! $ this -> isDeliveryApi && $ token -> isDone ( ) ) { throw new \ RuntimeException ( 'Can not continue syncing when using the Content Preview API.' ) ; } $ token = $ token -> getToken ( ) ; } $ response = $ this -> client -> syncRequest ( [ 'sync_token' => $ token ] ) ; return $ this -> buildResult ( $ response ) ; }
Continues the synchronization either at the next page,
or with the results since the initial synchronization.

@param string|Result $token

@throws \RuntimeException if this method is used for a subsequent sync when used with the Preview API

@return Result
Continues the synchronization either at the next page or with the results since the initial synchronization .