public function getList($org)
	{
		// Build the request path.
		$path = '/orgs/' . $org . '/members';

		$response = $this->client->get($this->fetchUrl($path));

		switch ($response->code)
		{
			case 302 :
				// Requester is not an organization member.
				return false;
				break;

			case 200 :
				return json_decode($response->body);
				break;

			default :
				throw new \UnexpectedValueException('Unexpected response code: ' . $response->code);
				break;
		}
	}
public function getList($org)
	{
		// Build the request path.
		$path = '/orgs/' . $org . '/members';

		$response = $this->client->get($this->fetchUrl($path));

		switch ($response->code)
		{
			case 302 :
				// Requester is not an organization member.
				return false;
				break;

			case 200 :
				return json_decode($response->body);
				break;

			default :
				throw new \UnexpectedValueException('Unexpected response code: ' . $response->code);
				break;
		}
	}
public function getList ( $ org ) { // Build the request path. $ path = '/orgs/' . $ org . '/members' ; $ response = $ this -> client -> get ( $ this -> fetchUrl ( $ path ) ) ; switch ( $ response -> code ) { case 302 : // Requester is not an organization member. return false ; break ; case 200 : return json_decode ( $ response -> body ) ; break ; default : throw new \ UnexpectedValueException ( 'Unexpected response code: ' . $ response -> code ) ; break ; } }
Members list.

List all users who are members of an organization.
A member is a user that belongs to at least 1 team in the organization.
If the authenticated user is also a member of this organization then
both concealed and public members will be returned.
If the requester is not a member of the organization the query will be
redirected to the public members list.

@param   string  $org  The name of the organization.

@throws \UnexpectedValueException
@since  1.0

@return boolean|mixed
Members list .