authorization = "Bearer" + " " + access_token;
header = Map();
header.put("Authorization",authorization);
header.put("Content-Type","application/json");
params.put("to",to_s);
params.put("from",froms);
params.put("text","Test SMS message from Platform server");
res5 = zoho.encryption.base64Encode(get_attachments);
data = "data:text/plain;" + "name=" + get_attachments + ";base64," + res5;
lists.add(data);
params.put("attachments",lists);
info params;
send_mms = invokeurl
[
url :"https://platform.devtest.ringcentral.com/restapi/v1.0/account/" + accID + "/extension/" + extensionId + "/mms"
type :POST
parameters:params.toString()
headers:header
];
info send_mms;