The "Get team member" endpoint (described below) is deprecated.We recommend using the Get team membership for a user endpoint instead. It allows you to get both active and pending memberships.To list members in a team, the team must be visible to the authenticated user.
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
返回响应
🟢204if user is a member
application/json
Body
🟠404if user is not a member
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api.github.com/teams//members/' \
--header'Authorization: Bearer <token>'