headers = { "Accept": "application/json", 'Content-type': "application/json" } data = { "code": code } print(token, code) response2 = requests.post('https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=' + token, headers=headers, data=data) print(response2.text) return ("hello word") {"errcode":47001,"errmsg":"data format error hint: [ygdBJHnre-OoZ0Ca] rid: 624e7b64-5434b888-1ee593f6"}
phonenumber.getPhoneNumber接口问题https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/phonenumber/phonenumber.getPhoneNumber.html 请求地址:POST https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=ACCESS_TOKEN [图片]
2022-04-07