예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * @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);
 }