在查看Python API for Trello的功能并考虑其功能时,我正在寻找一个允许在板上添加成员的功能 - w。/ o。成功。
我试过的……
我自己找到了一个补救措施。来源 - > Trello API Board Put会员
我自己的解决方案:
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" } response = requests.request("PUT", url, data=payload, headers=headers, params=querystring)