Skip to content

Commit 74210a4

Browse files
committed
Updated result_pager.md
1 parent 3e0ffa2 commit 74210a4

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

doc/result_pager.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
## Resultpager
2-
[Back to the navigation](../index.md)
1+
## Result Pager
2+
[Back to the navigation](index.md)
33

4-
To be written...
4+
### Usage examples
5+
6+
Get all results of a organization
7+
8+
```php
9+
$client = new Github\Client();
10+
11+
$organizationApi = $client->api('organization');
12+
13+
$paginator = new Github\ResultPager( $client );
14+
$result = $paginator->fetchAll( $organizationApi, 'repositories', 'future500' );
15+
```

0 commit comments

Comments
 (0)