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://dominio.ucontactcloud.com/Integra/resources/auth/UserLogin", "method": "POST", "headers": { "cache-control": "no-cache", "content-type": "application/x-www-form-urlencoded" }, "data": { "user": "Agente1", "password": "123" } } $.ajax(settings).done(function (response) { console.log(response); });

 

UserLoging C#

var client = new RestClient("https://dominio.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=Agente1&password=123", ParameterType.RequestBody); IRestResponse response = client.Execute(request);

 

UserLoging cURL

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

 

UserLoging JAVA

 


Upload contact list to Dialer

UploadBase JS

 

UploadBase C#

 

UploadBase cURL

 

UploadBase JAVA


Start an outgoing call

AgentCall JS

 

AgentCall C#

 

AgentCall cURL

 

AgentCall JAVA

 


Schedule call

Json object

 

ScheduleDialerCall JS

 

ScheduleDialerCall C#

 

ScheduleDialerCall cURL

 

ScheduleDialerCall JAVA

 


Respool call

 

Respool JS

 

Respool C#

 

Respool cURL

 

Respool JAVA