org_id
and team_id
using the route GET /organizations/{org_id}/team/{team_id}/memberships/{username}
.state
of the membership and the member's role
.role
for organization owners is set to maintainer
. For more information about maintainer
roles, see see Create a team.curl --location --request GET 'https://api.github.com/orgs//teams//memberships/'
{
"role": "member",
"state": "active",
"url": "http://example.com"
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通