如何在 SnapLogic 中以 JSON 数据作为正文创建 REST Post?
我需要向 yahoo 批量文件下载端点 ( https://api.admanager.yahoo.com/v1/rest/bulk/download ) 发送帖子,并且请求正文必须采用 JSON 格式:
{
"advertiserId": 30944,
"objectType": "CAMPAIGN",
"downloadAllLevels": true,
"filters": {
"objectIds": [123,
456
],
"objectStatus": [
"ACTIVE"
],
"fromDate": "2014-07-01 00:00:00",
"toDate": "2014-07-10 00:00:00",
"includeNegative":true,
"includeTargeting":true,
"includeExtensions":true
}
}
最佳答案
要实现此目的,您需要添加 JSON 生成器对象并在其中添加 JSON 数据。
然后您可以将其附加到 REST Post 对象。在 Post 对象中,确保将 HTTP 实体
值设置为 $
($ = 根路径)或其他值
该路径是您要发送的 JSON 数据的路径。
现在将使用此 json 数据作为正文发送帖子
关于json - 带有 JSON 数据的 SnapLogic REST Post,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40621137/