📜  访问 https: api.paypal.com v1 oauth2 token 时得到 Http 响应代码 401. - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:58.989000             🧑  作者: Mango

代码示例1
A HTTP401 on /token is returned if the client_id/secret aren’t recognized 
(either the wrong credentials for the environment, or the credentials aren’t 
active).

Can you run a test via cURL to rule out any environment / code-specific issues?

curl -v -u "client_id:secret" "https://api.sandbox.paypal.com/v1/oauth2/token" -X POST -d