| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/MassCommunication |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class MassCommunicationRequest
{
public String Message = null;
public ArrayList<String> Recipients = new ArrayList<String>();
public ArrayList<String> Locations = new ArrayList<String>();
public Boolean EmailMissingNumbers = null;
public Boolean EmailAll = null;
public Boolean SMSAll = null;
public String getMessage() { return Message; }
public MassCommunicationRequest setMessage(String value) { this.Message = value; return this; }
public ArrayList<String> getRecipients() { return Recipients; }
public MassCommunicationRequest setRecipients(ArrayList<String> value) { this.Recipients = value; return this; }
public ArrayList<String> getLocations() { return Locations; }
public MassCommunicationRequest setLocations(ArrayList<String> value) { this.Locations = value; return this; }
public Boolean isEmailMissingNumbers() { return EmailMissingNumbers; }
public MassCommunicationRequest setEmailMissingNumbers(Boolean value) { this.EmailMissingNumbers = value; return this; }
public Boolean isEmailAll() { return EmailAll; }
public MassCommunicationRequest setEmailAll(Boolean value) { this.EmailAll = value; return this; }
public Boolean isSmsAll() { return SMSAll; }
public MassCommunicationRequest setSmsAll(Boolean value) { this.SMSAll = value; return this; }
}
public static class MassCommunicationResponse
{
public ResponseStatus ResponseStatus = null;
public Boolean Success = null;
public Integer Recipients = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public MassCommunicationResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Boolean isSuccess() { return Success; }
public MassCommunicationResponse setSuccess(Boolean value) { this.Success = value; return this; }
public Integer getRecipients() { return Recipients; }
public MassCommunicationResponse setRecipients(Integer value) { this.Recipients = value; return this; }
}
}
Java MassCommunicationRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/MassCommunication HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Message":"String","Recipients":["String"],"Locations":["String"],"EmailMissingNumbers":false,"EmailAll":false,"SMSAll":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Success":false,"Recipients":0}