服务端API-通讯录管理-创建成员
在创建成员时,用python写了个函数,一直提示无效的name字段,但是这个字段已经有设置了,而且在postman工具里面测试可以,格式应该没问题,不知道还会有其它什么原因。 60112 invalid name, hint: [1580821910_54_16844f5d7e52caca18068f3153b46cf1], from ip: 183.251.21.73, more info at https://open.work.weixin.qq.com/devtool/query?e=60112 data = { "userid": "zha999nglllsan", "name": "李四", "mobile": "13808900000", } # header={"Content-Type": "application/x-www-form-urlencoded"} header={"Content-Type": "application/json; charset=UTF-8"} r = requests.post("https://qyapi.weixin.qq.com/cgi-bin/user/create?access_token=ACCESS-, data=data, headers=header) print(r.json()['errcode'],r.json()['errmsg'])