【问题标题】:POST application/x-www-form-urlencoded Body to REST API using Jitterbit使用 Jitterbit 将 application/x-www-form-urlencoded Body 发布到 REST API
【发布时间】:2020-10-08 14:40:02
【问题描述】:

我知道我以前做过,但现在我正在讨论如何正确地做到这一点。

我正在尝试调用 Paylocity 令牌 API。使用 cURL 和 Postman 就可以了。但是,我不记得如何在 Jitterbit 中正确发送身体。这是我尝试发送的 cURL 信息,但它没有获取有效负载数据,并且总是返回无效的授权类型错误。

--data-urlencode 部分是我不记得的。

curl --location --request POST 'https://api.paylocity.com/IdentityServer/connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic XXXXX=' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=WebLinkAPI'

【问题讨论】:

    标签: jitterbit x-www-form-urlencoded


    【解决方案1】:

    George Jeffcock 为我指明了正确的方向。问题是额外的换行符。此链接说明了这一点。

    https://community.jitterbit.com/s/question/0D54X0000687kiZSAQ

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-11
      • 2013-09-25
      相关资源
      最近更新 更多