如何使用JSON数据作为主体在SnapLogic中制作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
}
}发布于 2016-11-15 22:50:57
要做到这一点,您需要添加一个JSON对象并在那里添加JSON数据。
然后,您可以将它附加到REST对象。在Post对象中,确保将HTTP entity值设置为$ ($ =根路径)或要发送的JSON数据的路径。

现在,文章将以json数据作为正文发送。
https://stackoverflow.com/questions/40621137
复制相似问题