URL:
Description:
API that allows getting statistics from agents as long as the operation has Gamification activated.
Benefit:
Allows getting relevant information for operations with Gamification activated.
How it works:
NAME | DESCRIPTION | TYPE |
---|---|---|
api | Type of report required | String |
date_ini | Initial Date (YYYYmmddHHiiss) | String |
date_end | End Date (YYYYmmddHHiiss) | String |
NAME | DESCRIPTION | TYPE |
---|---|---|
agent_id | It is the numerical user assigned to each user of Wolkvox Agent. | String |
agent_name | It is the name assigned to each user of Wolkvox Agent. | String |
agent_dni | It is the identification document of each user of Wolkvox Agent. | String |
stats | Object with the query statistics. | String |
date | Indicate the date with year–month–day–hour format. | String |
points | Agent‘s gamification points for the queried date range. | String |
hits | Agent performance indicator indicating successful achievement or sale. | String |
calls | Indicate the number of calls (inbound, outbound, and internal) | String |
aht_time | Average Handling Time or Average Call Time measures the time it takes for an agent to attend to a customer. | String |
acw_time | It is the time the agent has spent on developing the activities required after the call is finished. | String |
occupancy | It indicates the consolidated time in which the agent was busy with calls or call documentation. | String |
login_time | It indicates the time the agent stayed connected to 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"
}
]
},
]
}
Sao Paulo +55 (11) 521 75 933
Santiago de Chile +56 (2) 240 533 89
Medellín +57 (604) 322 98 80
Ciudad de Guatemala +502 (2) 3141344
Ciudad de México +52 (55) 8526 36 34
Copyright © 2023 MICROSYSLABS. 1820 N Corporate Lakes Blvd, unit 205. Weston, FL 33326
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
SPAIN
Madrid +34 (910) 601 691
MEXICO
Ciudad de México +52 (55) 8526 36 34
BRASIL
Brasilia +55 (61) 9836 4127
São Paulo +55 (12) 9811 155 83
UNITED STATES
New York +1 (914) 373 71 36
DOMINICAN REPUBLIC
Santo Domingo +1 (829) 249 69 68
CHILE
Santiago de Chile +56 (2) 240 533 89
GUATEMALA
Ciudad de Guatemala +502 (2) 314 1344
PERU
Lima +51 (1) 644 91 39
Copyright © 2023 MICROSYSLABS S.A.S.
Cra 30 # 4A – 45 Of. 205 Ed. FOREVER W&L, Medellín, Colombia