/
f. Ejemplos
f. Ejemplos
- 1 UserLogin
- 1.1 UserLoging JS
- 1.2 UserLoging C#
- 1.3 UserLoging cURL
- 1.4 UserLoging JAVA
- 2 Subir lista de contactos a Marcador
- 2.1 UploadBase JS
- 2.2 UploadBase C#
- 2.3 UploadBase cURL
- 2.4 UploadBase JAVA
- 3 Realizar una llamada
- 3.1 AgentCall JS
- 3.2 AgentCall C#
- 3.3 AgentCall cURL
- 3.4 AgentCall JAVA
- 4 Agendar llamada
- 5 Respool llamada
- 5.1 Respool JS
- 5.2 Respool C#
- 5.3 Respool cURL
- 5.4 Respool JAVA
Reemplazo APIKey en los ejemplos:
"authorization" : "Basic XXXX" → "authorization" : "Basic APIKEY"
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": "Agente1",
"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=Agente1&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=Agente1&password=123'