For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.Team members will include the members of child teams.
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
返回响应
🟢204Response if user is a collaborator
application/json
Body
🟠404Not Found if user is not a collaborator
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api.github.com/repos///collaborators/' \
--header'Authorization: Bearer <token>'