get('/user/memberships/orgs'); } /** * Get your organization membership. * * @link https://developer.github.com/v3/orgs/members/#get-your-organization-membership * * @param string $organization * * @return array */ public function organization($organization) { return $this->get('/user/memberships/orgs/'.rawurlencode($organization)); } /** * Edit your organization membership. * * @link https://developer.github.com/v3/orgs/members/#edit-your-organization-membership * * @param string $organization * * @return array */ public function edit($organization) { return $this->patch('/user/memberships/orgs/'.rawurlencode($organization), ['state' => 'active']); } }