/
Examples

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



Ā 


Ā 

Related content

Examples
More like this
Ejemplos
More like this
Ejemplos
More like this
f. Ejemplos
f. Ejemplos
More like this
a. Seguridad API
a. Seguridad API
More like this
a. API Security v5
a. API Security v5
More like this