/** * Executes search to API with pagination. * * @param string $query * @param int $batchesLimit * @return \Iterator */ public function searchWithPagination($query, $scope, $batchesLimit) { return PaginationHelper::getPaginatedData($this, 'searchCall', ['query' => $query, 'scope' => $scope], $batchesLimit); }
/** * @param string $username * @param string $resourceUrl * @param string $sourceUrl * @param int $batchesLimit * @return \Iterator */ public function getPaginatedUserData($username, $resourceUrl, $sourceUrl, $batchesLimit = 0) { return PaginationHelper::getPaginatedData($this, 'getUserData', ['username' => $username, 'url' => $resourceUrl, 'sourceUrl' => $sourceUrl], $batchesLimit); }