【发布时间】:2021-01-15 15:27:00
【问题描述】:
curl -X POST https://api.sandbox.paypal.com/v1/oauth2/token \
-H 'Authorization: Basic {Your Base64-encoded ClientID:Secret}' \
-d 'grant_type=authorization_code&code={authorization_code}'
虽然Authorization: Basic {Your Base64-encoded ClientID:Secret}
标题。
我是不是做错了什么?
这是我在 Postman 中得到的输出。
{
"name": "AUTHENTICATION_FAILURE",
"message": "Authentication failed due to invalid authentication credentials or a missing Authorization header.",
"links": [
{
"href": "https://developer.paypal.com/docs/api/overview/#error",
"rel": "information_link"
}
]
}
【问题讨论】:
标签: paypal authorization postman token