You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
With our API you can interact through various channels so that your contact center is always connected.
SMS
Within this category we can perform the following actions
Send SMS
Relative URL: Integra/resources/SMS/SendSMS
Method: POST
content-type:application/x-www-form-urlencoded; charset=UTF-8
Params: destination (Number of the sms destination)
message (Text message)
campaign (Outbound campaign)
agent (Sender Agent)
source (Callerid or Port Number)
Result: TEXT OK
ERROR
via Proxy
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/porthole/1.0.0/porthole.js"></script>
<script type="text/javascript">
function SMS () {
var windowProxy;
windowProxy = new Porthole.WindowProxy(window.location.protocol + window.location.hostname);
windowProxy.post({'action': 'sms', 'campaign' : '<CAMPAIGN>', 'message' : '<MESSAGE>', 'destination' : '<NUMBER>'});
}
</script>
Recive SMS
Relative URL: Integra/resources/InboundSMS/ReceiveURLSMS
Method: GET
content-type:application/x-www-form-urlencoded; charset=UTF-8
Params: phone (Número origen del sms)
message (Mensaje de texto)
Result: TEXTO OK
ERROR
Schedule SMS
Relative URL: Integra/resources/SMS/ScheduleDialerSMS
Method: POST
content-type:application/x-www-form-urlencoded; charset=UTF-8
Params: sms (JSON Object)
Result: 1
Json Object
{
"calldate" : "2015-10-11 15:00:00", // Sms date
"campaign" : "Ventas->", // Sms dialer campaign
"destination" : "098344484", // Sms destination
"data" : "Message" // Sms text message
}
Upload SMS Base
Relative URL: Integra/resources/SMS/uploadbase
Method: POST
content-type:application/x-www-form-urlencoded; charset=UTF-8
Params: filename (Name of the file)
fileb64 (base64 content of the file)
campaign (Name of the campaign)
Result: 1 (Async Method)
somecampaign;098344484;Hello World!;9999
campaign;number;text;priority
Email
For email we can load the dialers bases
Upload Email Base
Relative URL: IntegraChannels/resources/DialersResources/uploadMultiChannelBlacklist
Method: POST
content-type:application/x-www-form-urlencoded; charset=UTF-8
Parameters: filename (File name)
fileb64 (Csv file content in base 64)
channel 'email' (this value will always be the same)
user username
Result: 1 (Async Method)
CampName;ejemplo@gmail.com;This is an example mail body;;"Var1":"value","Var2":"value";9999
Postman collection with example calls to Send SMS