I try to add Campagn but i got error 500.
head = Map();
head.put("Authorization","Zoho-oauthtoken " + token);
head.put("Content-Type","application");
listkey ="3zca9967dc594a810a86d3990cdefecbb2f9c3596561bef762abeb0fdecebbab89");
param = Map();
param.put("resfmt","json");
param.put("campaignname",job);
param.put("subject","Kako je u švici?");
param.put("list_details","3zca9967dc594a810a86d3990cdefecbb2f9c3596561bef762abeb0fdecebbab89");
info param;
rec = invokeurl
[
type :POST
parameters:param
headers:head
];
Response:
{"code":"500","error":"An internal error occured while processing your request","uri":"/api/v2/createCampaign"}
Please help.