使用Jitterbit将应用程序/ x-www-form-urlencoded主体发布到REST API

问题描述

我知道我以前已经做过,但是现在我在等待如何正确做。

我正在尝试调用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'

解决方法

乔治·杰夫考克(George Jeffcock)向我指出了正确的方向。问题是额外的换行符。该链接说明了这一点。

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