Para poder utilizar a API do Evolux, é necessário primeiro Gerar um Token.
Report URL | /callcenter/report/agents_performance |
---|---|
API URL: | /api/v1/report/agents_performance |
Atualmente, a maneira mais fácil de usar essa API é através do relatório original. Acessar a Report URL pela interface Web, escolher os filtros desejados e copiar os parâmetros GET que o relatório preenche na URL ao ser gerado.
Acesso via WEB do Relatório (Report URL)
https://example.evolux.net.br/callcenter/report/agents_performance?start_date=&end_date=&queue_id=183&generate_report=true&export_format=csv
Parâmetros GET da URL:
?start_date=&end_date=&queue_id=183&generate_report=true&export_format=csv
Acesso via API do Relatório (API URL)
curl 'https://example.evolux.net.br/api/v1/report/agents_performance?start_date=&end_date=&queue_id=183&generate_report=true&export_format=csv&token=205e281e-9620-4f58-9001-bb40fe9989e2'
Para usar a API, é necessário incluir também o parâmetro Token na requisição.
Retorno:
{ "params" : { "export_format" : "csv", "start_date" : "", "queue_id" : "183", "end_date" : "" }, "meta" : { "message" : "OK", "status" : 200 }, "data" : [ { "logon" : "01:04:57", "productive_pause" : "00:02:20", "total_campaign_duration" : "00:00:00", "id" : 77, "total_campaign_calls" : 0, "disconnection_rate" : "0.0%", "percentage_occupied" : "3.93%", "idleness" : "01:02:24", "att" : "00:00:06", "total_out_completed_ringing" : "00:00:00", "total_out_not_completed_calls" : 0, "campaign_att" : "00:00:00", "name" : "Caio Cesar", "pause_total" : "00:05:16", "login" : "caio.cesar", "total_out_completed_calls" : 0, "total_in_duration" : "00:00:13", "out_completed_att" : "00:00:00", "unproductive_pause" : "00:02:56", "total_in_calls" : 2, "total_out_completed_duration" : "00:00:00", "attempts" : 0, "total_out_not_completed_duration" : "00:00:00" }, { "logon" : "00:47:04", "productive_pause" : "00:00:00", "total_campaign_duration" : "00:00:00", "id" : 36, "total_campaign_calls" : 0, "idleness" : "00:47:04", "percentage_occupied" : "0.00%", "disconnection_rate" : "0.0%", "total_out_completed_ringing" : "00:00:00", "att" : "00:00:00", "campaign_att" : "00:00:00", "total_out_not_completed_calls" : 0, "name" : "Aline Ara�jo", "pause_total" : "00:00:00", "login" : "aline.araujo", "total_out_completed_calls" : 0, "total_in_duration" : "00:00:00", "total_out_completed_duration" : "00:00:00", "attempts" : 0, "total_in_calls" : 0, "out_completed_att" : "00:00:00", "unproductive_pause" : "00:00:00", "total_out_not_completed_duration" : "00:00:00" }, { "name" : "Jo�o Paulo", "pause_total" : "00:00:00", "campaign_att" : "00:00:00", "total_out_not_completed_calls" : 0, "att" : "00:00:00", "total_out_completed_ringing" : "00:00:00", "idleness" : "00:00:00", "percentage_occupied" : "0.00%", "disconnection_rate" : "0.0%", "id" : 29, "total_campaign_calls" : 0, "total_campaign_duration" : "00:00:00", "productive_pause" : "00:00:00", "logon" : "00:00:00", "total_out_not_completed_duration" : "00:00:00", "total_out_completed_duration" : "00:00:00", "total_in_calls" : 0, "attempts" : 0, "unproductive_pause" : "00:00:00", "out_completed_att" : "00:00:00", "total_in_duration" : "00:00:00", "total_out_completed_calls" : 0, "login" : "joaopaulo" }, { "total_campaign_duration" : "00:00:00", "productive_pause" : "00:00:00", "logon" : "02:06:41", "id" : 73, "total_campaign_calls" : 0, "total_out_completed_ringing" : "00:00:18", "att" : "00:00:15", "percentage_occupied" : "12.54%", "disconnection_rate" : "100.0%", "idleness" : "01:50:48", "name" : "Artur Oliveira", "pause_total" : "00:00:00", "total_out_not_completed_calls" : 4, "campaign_att" : "00:00:00", "login" : "artur.oliveira", "total_out_completed_calls" : 6, "total_in_duration" : "00:00:15", "total_out_not_completed_duration" : "00:00:19", "unproductive_pause" : "00:00:00", "out_completed_att" : "00:02:30", "total_out_completed_duration" : "00:15:02", "total_in_calls" : 1, "attempts" : 0 }, { "total_out_not_completed_duration" : "00:00:00", "total_out_completed_duration" : "00:00:35", "total_in_calls" : 0, "attempts" : 0, "out_completed_att" : "00:00:35", "unproductive_pause" : "00:00:00", "total_in_duration" : "00:00:00", "total_out_completed_calls" : 1, "login" : "rebeca.maia", "name" : "Rebeca Maia", "pause_total" : "00:00:00", "campaign_att" : "00:00:00", "total_out_not_completed_calls" : 0, "att" : "00:00:00", "total_out_completed_ringing" : "00:00:00", "idleness" : "07:38:02", "percentage_occupied" : "0.13%", "disconnection_rate" : "0.0%", "id" : 56, "total_campaign_calls" : 0, "total_campaign_duration" : "00:00:00", "productive_pause" : "00:00:00", "logon" : "07:38:37" }, { "total_in_duration" : "00:00:00", "total_out_completed_duration" : "00:00:00", "attempts" : 0, "total_in_calls" : 0, "out_completed_att" : "00:00:00", "unproductive_pause" : "00:00:00", "total_out_not_completed_duration" : "00:00:00", "login" : "bruno.levy", "total_out_completed_calls" : 0, "idleness" : "00:00:00", "percentage_occupied" : "0.00%", "disconnection_rate" : "0.0%", "att" : "00:00:00", "total_out_completed_ringing" : "00:00:00", "campaign_att" : "00:00:00", "total_out_not_completed_calls" : 0, "name" : "Bruno Levy", "pause_total" : "00:00:00", "productive_pause" : "00:00:00", "logon" : "00:00:00", "total_campaign_duration" : "00:00:00", "total_campaign_calls" : 0, "id" : 66 }, { "name" : "hiago miguel", "pause_total" : "00:21:31", "campaign_att" : "00:00:00", "total_out_not_completed_calls" : 0, "total_out_completed_ringing" : "00:00:02", "att" : "00:00:05", "idleness" : "00:59:51", "disconnection_rate" : "100.0%", "percentage_occupied" : "26.76%", "id" : 79, "total_campaign_calls" : 0, "logon" : "01:21:43", "productive_pause" : "00:21:31", "total_campaign_duration" : "00:00:00", "total_out_not_completed_duration" : "00:00:00", "attempts" : 1, "total_out_completed_duration" : "00:00:14", "total_in_calls" : 1, "out_completed_att" : "00:00:14", "unproductive_pause" : "00:00:00", "total_in_duration" : "00:00:05", "total_out_completed_calls" : 1, "login" : "hiago.miguel" } ] }