memberships.md
March 11, 2018 ยท View on GitHub
Current user / Memberships API
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.