Added campaign_id option to agent_stats_export function in Non-Agent API
git-svn-id: svn://192.168.202.10@3310 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2020-10-04
|
||||
NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2020-11-06
|
||||
|
||||
This document describes the functions of an API(Application Programming
|
||||
Interface) for all functions NOT directly relating to the VICIDIAL Agent screen.
|
||||
@@ -164,6 +164,7 @@ Changes:
|
||||
200815-1025 - Added campaigns_list & hopper_list functions
|
||||
200824-2330 - Added search_method BLOCK option for hopper_list function
|
||||
201002-1545 - Added extension as recording_lookup option, Allowed for secure sounds_web_server setting
|
||||
201106-1654 - Added campaign_id option to agent_stats_export function
|
||||
|
||||
|
||||
API Functions use the 'function' variable
|
||||
@@ -531,7 +532,8 @@ datetime_start - start date/time of the agent activity to pull (must be in "YYYY
|
||||
datetime_end - end date/time of the agent activity to pull (must be in "YYYY-MM-DD+HH:MM:SS" format)
|
||||
|
||||
SETTINGS FIELDS-
|
||||
agent_user - 2-20 characters, use only for one agent stats
|
||||
agent_user - 2-20 characters, use only for one agent stats <optional>
|
||||
campaign_id - 2-8 characters, use only for one campaign stats <optional>
|
||||
stage - the format of the exported data: csv, tab, pipe(default)
|
||||
header - include a header(YES) or not(NO). This is optional, default is not to include a header
|
||||
time_format - time format('H','HF','M','S') in hours, minutes or seconds: H = 1:23:45, M = 83:45, S = 5023 (default 'HF')
|
||||
@@ -546,8 +548,8 @@ http://server/vicidial/non_agent_apiX.php?DB=0&stage=pipe&user=6666&pass=1234&so
|
||||
|
||||
Example responses:
|
||||
ERROR: agent_stats_export USER DOES NOT HAVE PERMISSION TO GET AGENT INFO - 6666|0
|
||||
ERROR: agent_stats_export INVALID SEARCH PARAMETERS - 6666||2010-12-03 00:00:00|2010-12-03 00:00:01
|
||||
ERROR: agent_stats_export NO RECORDS FOUND - 1255||2010-12-03 00:00:00|2010-12-03 00:00:01
|
||||
ERROR: agent_stats_export INVALID SEARCH PARAMETERS - 6666||2010-12-03 00:00:00|2010-12-03 00:00:01|
|
||||
ERROR: agent_stats_export NO RECORDS FOUND - 1255||2010-12-03 00:00:00|2010-12-03 00:00:01|
|
||||
|
||||
A SUCCESS response will not show "SUCCESS", but instead will just print the results in the following format:
|
||||
user|full_name|user_group|calls|login_time|total_talk_time|avg_talk_time|avg_wait_time|pct_of_queue|pause_time|sessions|avg_session|pauses|avg_pause_time|pause_pct|pauses_per_session|total_wait_time
|
||||
|
||||
Reference in New Issue
Block a user