You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# 这是一个Python示例,实际使用时根据你的后端语言进行调整
|
|
import requests
|
|
|
|
def get_phone_number(code):
|
|
url = 'https://api.weixin.qq.com/wxa/business/getuserphonenumber'
|
|
|
|
# 通过code换取手机号
|
|
data = {
|
|
'code': code,
|
|
'access_token': '你的access_token'
|
|
}
|
|
|
|
response = requests.post(url, json=data)
|
|
return response.json() |