我知道我以前做过,但现在我正在讨论如何正确地做。
我正在尝试调用Paylocity代币API。使用cURL和Postman做这件事很好。但是,我不记得如何在Jitterbit中正确发送尸体。这是我试图发送的cURL信息,但它没有获得有效负载数据,并且总是返回无效的授予类型错误。
--dataurlencode这段内容我记不住了。
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