【问题标题】:Is there a possibility to invite a GitHub User in a organization with the GitHub-API in Javascript?是否可以使用 Javascript 中的 GitHub-API 邀请组织中的 GitHub 用户?
【发布时间】:2019-01-10 14:16:25
【问题描述】:

我需要我的 Javascript 代码来邀请我组织中的 GitHub 用户。 GitHub API可以做到这一点吗?如何? 谢谢你:)

【问题讨论】:

  • 搜索“github api邀请”似乎调出api文档

标签: javascript api github account


【解决方案1】:

来自the API documentation

要将某人添加为组织的成员,您必须invite them to the organizationinvite them to a team

您可以通过邀请用户加入团队来邀请用户加入组织。这可以通过向/teams/:team_id/memberships/:username 发出 PUT 请求来实现。在the docs 中查看更多信息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多