https://wv{{wolkvox_server}}.wolkvox.com/api/v2/gamification.php?date_ini={{fecha_ini}}&date_end={{fecha_end}}&api=agents_kpi
Ejemplos de código:
En nuestro workspace de Postman (da clic aquí para ir), tienes acceso a ejemplos de código que facilitan la integración con nuestras APIs en diferentes lenguajes de programación, como cURL, Python, JavaScript, y más.
Esta funcionalidad es ideal para integraciones rápidas y permite adaptar los llamados a la API según el lenguaje de programación de tu sistema.
Cómo Usar los Ejemplos de Código:
Descripción:
Esta api permite obtener un informe consolidado del posicionamiento de cada agente en el servicio de gamificación de su operación.
Beneficio:
Conocerás por medio del consumo de API la posición de los agentes en la tabla de clasificación según el servicio de gamificación configurado en la operación.
Cómo funciona:
REQUEST |
NAME | DESCRIPTION | TYPE |
---|---|---|
api | Tipo de reporte requerido. | String |
date_ini | Fecha Inicial (YYYYmmddHHiiss). | String |
date_end | Fecha Final (YYYYmmddHHiiss). | String |
RESPONSE |
NAME | DESCRIPTION | TYPE |
---|---|---|
agent_id | Número de extensión del agente. | String |
agent_name | Es el nombre que se asigna a cada uno de los usuarios de wolkvox Agent. | String |
agent_dni | Es el documento de identificación del agente. | String |
stats | Objeto con las estadísticas de la consulta. | String |
data | Indica la fecha con formato año-mes -día-hora. | String |
points | Puntos de gamificación del agente para el rango de fecha consultada. | String |
hits | Indicador de desempeño del agente que indica logro o venta exitosa. | String |
calls | Indica la cantidad de llamadas (inbound, outbound e internal). | String |
aht_time | Average Handling Time o Tiempo Medio de Llamada mide el tiempo que un agente tarda en atender al cliente. | String |
acw_time | Es el tiempo que el agente ha empleado en desarrollar las actividades requeridas posteriores a la finalización de la llamada. | String |
occupancy | Indica el tiempo consolidado en el cual el agente estuvo ocupado en llamadas o documentación de llamadas. | String |
login_time | Indica el tiempo que el agente permaneció conectado en wolkvox Agent. | String |
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://wv{{wolkvox_server}}.wolkvox.com/api/v2/gamification.php?date_ini={{date_ini}}&date_end={{date_end}}&api=agents_kpi',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'wolkvox_server: {{wolkvox_server}}',
'wolkvox-token: {{wolkvox-token}}'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
curl --location --globoff 'https://wv{{wolkvox_server}}.wolkvox.com/api/v2/gamification.php?date_ini={{date_ini}}&date_end={{date_end}}&api=agents_kpi' \
--header 'wolkvox_server: {{wolkvox_server}}' \
--header 'wolkvox-token: {{wolkvox-token}}'
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://wv{{wolkvox_server}}.wolkvox.com/api/v2/gamification.php?date_ini={{date_ini}}&date_end={{date_end}}&api=agents_kpi")
.method("GET", body)
.addHeader("wolkvox_server", "{{wolkvox_server}}")
.addHeader("wolkvox-token", "{{wolkvox-token}}")
.build();
Response response = client.newCall(request).execute();
import requests
url = "https://wv{{wolkvox_server}}.wolkvox.com/api/v2/gamification.php?date_ini={{date_ini}}&date_end={{date_end}}&api=agents_kpi"
payload = {}
headers = {
'wolkvox_server': '{{wolkvox_server}}',
'wolkvox-token': '{{wolkvox-token}}'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
{
"code": "200",
"error": null,
"msg": "368 records were found",
"data": [
{
"agent_id": "12999",
"agent_name": "Menphy Halland",
"agent_dni": "9274658220",
"stats": [
{
"date": "20230130",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230129",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230128",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230127",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230126",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230125",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230124",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230123",
"points": "428",
"hits": "0",
"calls": "2",
"aht_time": "00:06:01",
"acw_time": "00:00:13",
"occupancy": "35 %",
"login_time": "00:34:00"
},
{
"date": "20230122",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230121",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230120",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230119",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230118",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230117",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230116",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230115",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230114",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230113",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230112",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230111",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:02:00"
},
{
"date": "20230110",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230109",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230108",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230107",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230106",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230105",
"points": "766",
"hits": "0",
"calls": "2",
"aht_time": "00:00:41",
"acw_time": "00:00:08",
"occupancy": "2 %",
"login_time": "01:24:00"
},
{
"date": "20230103",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230102",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
},
{
"date": "20230101",
"points": "0",
"hits": "0",
"calls": "0",
"aht_time": "00:00:00",
"acw_time": "00:00:00",
"occupancy": "0 %",
"login_time": "00:00:00"
}
]
},
]
}
Medellín +57 (604) 322 98 80
Bogotá +57 (601) 381 90 40
Cali +57 (602) 891 28 46
Barranquilla +57 (605) 316 10 34
Sao Paulo
+55 (11) 521 75 933
Madrid
+34 (910) 601 691
Atlanta, GA +1 (470) 447-2610
Miami, FL +1 (470) 447-2610
Ciudad de México
+52 (55) 8526 36 34
Santo Domingo
+1 (829) 249 69 68
Copyright © 2023 MICROSYSLABS S.A.S. Todos los derechos reservados. Cra 30 # 4A-45 Of. 205 Ed. FOREVER W&L, Medellín, Colombia
COLOMBIA
Medellín +57 (4) 322 98 80
Bogotá +57 (1) 381 90 40
Cali +57 (2) 891 28 46
Barranquilla +57 (5) 316 10 34
ARGENTINA
Buenos Aires +54 (11) 5217 5933
ESPAÑA
Madrid +34 (910) 601 691
MÉXICO
Ciudad de México +52 (55) 8526 36 34
BRASIL
Brasilia +55 (61) 9836 4127
São Paulo +55 (12) 9811 155 83
ESTADOS UNIDOS
New York +1 (914) 373 71 36
REPÚBLICA DOMINICANA
Santo Domingo +1 (829) 249 69 68
CHILE
Santiago de Chile +56 (2) 240 533 89
GUATEMALA
Ciudad de Guatemala +502 (2) 314 1344
PERÚ
Lima +51 (1) 644 91 39
Copyright © 2022 MICROSYSLABS S.A.S.
Todos los derechos reservados.
Cra 30 # 4A – 45 Of. 205 Ed. FOREVER W&L, Medellín, Colombia
Hacemos uso de cookies, si continúas navegando asumiremos que estás de acuerdo. Puede leer más sobre el uso de cookies en nuestras políticas de privacidad y tratamiento de datos personales
Hacemos uso de cookies, si continúas navegando asumiremos que estás de acuerdo. Puede leer más sobre el uso de cookies en nuestras políticas de privacidad y tratamiento de datos personales