【问题标题】:"error": "unsupported_grant_type", "error_description": "Grant Type is NULL" Postman with Paypal"error": "unsupported_grant_type", "error_description": "Grant Type is NULL" 邮递员与 Paypal
【发布时间】:2019-04-21 04:37:30
【问题描述】:

我正在按照有关如何使用 Postman 从 Paypal 获取访问令牌的说明进行操作。

我不断收到此错误消息:

"error": "unsupported_grant_type", "error_description": "授权类型 为空”

这是我的邮递员设置:

网址:https://api.sandbox.paypal.com/v1/oauth2/token

授权:用户名:client_id...密码:secret...

标题:Content-Type -> application/x-www-form-urlencoded

正文:form-urlencoded

key: grant_type
value: client_credentials

【问题讨论】:

  • 您的请求在 Postman 中是什么样的?你能张贴截图,明显掩盖你的身份验证细节吗?

标签: paypal postman


【解决方案1】:

按照屏幕截图。 当您在正文中插入grant_type 时,我猜您的流程存在问题。

【讨论】:

    【解决方案2】:

    检查正文的结构,如下所示。

    body: {
        mode: 'urlencoded',
        urlencoded: [
        {key: "grant_type", value: "openapi_2lo", disabled: false},
    ]
    

    【讨论】:

      猜你喜欢
      • 2019-05-21
      • 2022-12-22
      • 1970-01-01
      • 2019-12-01
      • 1970-01-01
      • 2022-12-02
      • 2023-01-27
      • 2022-11-20
      • 2019-09-12
      相关资源
      最近更新 更多