diff --git a/lib/Github/Api/Organization/Members.php b/lib/Github/Api/Organization/Members.php index 023e3f8d545..4a47eb6f597 100644 --- a/lib/Github/Api/Organization/Members.php +++ b/lib/Github/Api/Organization/Members.php @@ -11,7 +11,7 @@ */ class Members extends AbstractApi { - public function all($organization, $type = null, $filter = 'all', $role = null) + public function all($organization, $type = null, $filter = 'all', $role = null, $per_page = 30, $page = 1) { $parameters = []; $path = '/orgs/'.rawurlencode($organization).'/'; @@ -23,6 +23,12 @@ public function all($organization, $type = null, $filter = 'all', $role = null) if (null !== $role) { $parameters['role'] = $role; } + if (null !== $per_page) { + $parameters['per_page'] = $per_page; + } + if (null !== $page) { + $parameters['page'] = $page; + } } else { $path .= 'public_members'; }