Skip to content

Commit

Permalink
Update Directory.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hotmeteor committed Jun 30, 2023
1 parent 0dc1189 commit 290fa57
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Products/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ class Directory extends BaseProduct
* Read company directory and organization structure
* https://developer.tryfinch.com/docs/reference/12419c085fc0e-directory
*
* @param int $offset
* @param int $limit
* @return Paginated
* @throws GuzzleException
*/
public function all(): Paginated
public function all(int $offset = 0, int $limit = 20): Paginated
{
return $this->paginate($this->client->get(self::PREFIX), 'individuals');
return $this->paginate($this->client->get(self::PREFIX, [
'limit' => $limit,
'offset' => $offset
]), 'individuals');
}
}

0 comments on commit 290fa57

Please sign in to comment.