有没有办法使用Python API for Trello邀请成员加入董事会?


老夫的少女心吖
2025-04-15 05:32:53 (2天前)


在查看Python API for Trello的功能并考虑其功能时,
我正在寻找一个允许在板上添加成员的功能 - w。/ o。成功。

我试过的……

2 条回复
  1. 0# 昵称不能为空 | 2019-08-31 10-32



    我自己找到了一个补救措施。来源 - >

    Trello API Board Put会员



    我自己的解决方案:




    1. def invite_new_member(self, fullName, email, boardID):
      url = self.baseURL + boards/“ + boardID + “/members
      querystring = {“email”: email, key”: apikey,
      token”: token}
      payload = “{\”fullName\”:\” + fullName + \”}”
      headers = {
      type’: normal”,
      content-type’: application/json }

    2. response = requests.request("PUT", url, data=payload, headers=headers, 
    3. params=querystring)
    4. </code>

登录 后才能参与评论