以下为请求代码:
CLIENT_ID = "XXXXXXXXXXXXXXX"
CLIENT_SECRET = "XXXXXXXXXXXXXXXXXXXXXXX"
GRANT_ID = "11XXXXX50" GRANDT_ID为店铺ID,
param = dict({
"client_id": CLIENT_ID,
"client_secret": CLIENT_SECRET,
"grant_id": GRANT_ID,
"authorize_type": "silent",
"refresh": True,
})
headers = {
"Content-Type": "application/json",
}
url = f"https://open.youzanyun.com/auth/token"
result = requests.post(url=url, data=param, headers=headers).json()
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|