public function isMember($id, $user)
	{
		// Build the request path.
		$path = '/teams/' . $id . '/members/' . $user;

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

		switch ($response->code)
		{
			case 204 :
				// Response if user is a member
				return true;
				break;

			case 404 :
				// Response if user is not a member
				return false;
				break;

			default :
				throw new \UnexpectedValueException('Unexpected response code: ' . $response->code);
				break;
		}
	}
public function isMember($id, $user)
	{
		// Build the request path.
		$path = '/teams/' . $id . '/members/' . $user;

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

		switch ($response->code)
		{
			case 204 :
				// Response if user is a member
				return true;
				break;

			case 404 :
				// Response if user is not a member
				return false;
				break;

			default :
				throw new \UnexpectedValueException('Unexpected response code: ' . $response->code);
				break;
		}
	}
public function isMember ( $ id , $ user ) { // Build the request path. $ path = '/teams/' . $ id . '/members/' . $ user ; $ response = $ this -> client -> get ( $ this -> fetchUrl ( $ path ) ) ; switch ( $ response -> code ) { case 204 : // Response if user is a member return true ; break ; case 404 : // Response if user is not a member return false ; break ; default : throw new \ UnexpectedValueException ( 'Unexpected response code: ' . $ response -> code ) ; break ; } }
Get team member.

In order to get if a user is a member of a team, the authenticated user must be a member of the team.

@param   integer  $id    The team id.
@param   string   $user  The name of the user.

@throws \UnexpectedValueException
@since  1.0

@return object
Get team member .