Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 978 Bytes

memberships.md

File metadata and controls

36 lines (23 loc) · 978 Bytes

Current user / Memberships API

Back to the navigation

Wraps GitHub Issue Comments API.

List your memberships

Requires authentication.

$memberships = $client->currentUser()->memberships()->all();

Returns an array of your memberships in all organizations you are part of.

Show an organization membership

Requires authentication.

$membership = $client->currentUser()->memberships()->organization('KnpLabs');
  • KnpLabs : the organization

Returns an array of one membership in a specific organization.

Update an organization membership

Requires authentication.

$membership = $client->currentUser()->memberships()->edit('KnpLabs');
  • KnpLabs : the organization

Update your membership to an organization. The only possible action is to activate your membership.