Adobe campaign classic REST POST call with JSON as input
Hello,
i am new to adobe campaign tool, trying to explore the possible ways to
1. send POST REST request to endpoint with JSON as input
2. get the response as JSON.
3. parse the JSON response for usage inside campaign.
i tried with GET REST request, got the response back.
sample code:
var http = new HttpClientRequest("http://jsonplaceholder.typicode.com/posts/1");
http.method = "GET";
http.execute();
var resp = http.response;
logInfo("Response Code"+resp.code);
logInfo("Response body"+resp.body);
Could you please share the sample code for POST call with jSON as input.