We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee27600 + 1d2a00a commit 4c5fe77Copy full SHA for 4c5fe77
lib/Github/Api/Organization/Members.php
@@ -10,13 +10,20 @@
10
*/
11
class Members extends AbstractApi
12
{
13
- public function all($organization, $type = null)
+ public function all($organization, $type = null, $filter = 'all')
14
15
+ $parameters = array();
16
+ $path = 'orgs/'.rawurlencode($organization).'/';
17
if (null === $type) {
- return $this->get('orgs/'.rawurlencode($organization).'/members');
18
+ $path .= 'members';
19
+ if (null !== $filter) {
20
+ $parameters['filter'] = $filter;
21
+ }
22
+ } else {
23
+ $path .= 'public_members';
24
}
25
- return $this->get('orgs/'.rawurlencode($organization).'/public_members');
26
+ return $this->get($path, $parameters);
27
28
29
public function show($organization, $username)
0 commit comments