【发布时间】:2019-01-10 14:16:25
【问题描述】:
我需要我的 Javascript 代码来邀请我组织中的 GitHub 用户。 GitHub API可以做到这一点吗?如何? 谢谢你:)
【问题讨论】:
-
搜索“github api邀请”似乎调出api文档
标签: javascript api github account
我需要我的 Javascript 代码来邀请我组织中的 GitHub 用户。 GitHub API可以做到这一点吗?如何? 谢谢你:)
【问题讨论】:
标签: javascript api github account
要将某人添加为组织的成员,您必须invite them to the organization 或invite them to a team。
您可以通过邀请用户加入团队来邀请用户加入组织。这可以通过向/teams/:team_id/memberships/:username 发出 PUT 请求来实现。在the docs 中查看更多信息。
【讨论】: