Examples

Remember that to use the API you need

  1. Authenticate and get a token for the session

  2. Use the token in the Header Authorization

  3. End session

See more here…

In the examples:

We will use “Basic XXXX” as APIKey

We will use "252.ucontactcloud.com" as the Relative URL


UserLogin

 



UserLoging JS
var settings = { "async": true, "crossDomain": true, "url": "https://252.ucontactcloud.com/Integra/resources/auth/UserLogin", "method": "POST", "headers": { "cache-control": "no-cache", "content-type": "application/x-www-form-urlencoded" }, "data": { "user": "Agent1", "password": "123" } } $.ajax(settings).done(function (response) { console.log(response); });



UserLoging C#
var client = new RestClient("https://252.ucontactcloud.com/Integra/resources/auth/UserLogin"); var request = new RestRequest(Method.POST); request.AddHeader("cache-control", "no-cache"); request.AddHeader("content-type", "application/x-www-form-urlencoded"); request.AddParameter("application/x-www-form-urlencoded", "user=Agent1&password=123", ParameterType.RequestBody); IRestResponse response = client.Execute(request);



UserLoging cURL
curl -X POST \ https://252.ucontactcloud.com/Integra/resources/auth/UserLogin \ -H 'cache-control: no-cache' \ -H 'content-type: application/x-www-form-urlencoded' \ -d 'user=Agent1&password=123'



UserLoging JAVA



 


Upload contact list for Dialers

 



UploadBase JS



UploadBase C#



UploadBase cURL



UploadBase JAVA



 


Start an outgoing call

 



AgentCall JS



AgentCall C#



AgentCall cURL



AgentCall JAVA



 


Schedule call

 



ScheduleDialerCall JS



ScheduleDialerCall C#



ScheduleDialerCall cURL



ScheduleDialerCall JAVA



 


Respool call

 



Respool JS



Respool C#



Respool cURL



Respool JAVA