This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:custom_development_guide:apis:http:get_agent_stat_in_team [2017/12/12 03:05] 127.0.0.1 external edit |
en:custom_development_guide:apis:http:get_agent_stat_in_team [2019/01/02 06:55] (current) donnie |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Get single agent stat ====== | + | ====== Get the status of all agent in team ====== |
| * Reques String: | * Reques String: | ||
| Line 10: | Line 10: | ||
| ^ Params ^ Type ^ Description ^ | ^ Params ^ Type ^ Description ^ | ||
| + | |EVENT|String|TeamStatus| | ||
| |orgidentity|String|team identity string| | |orgidentity|String|team identity string| | ||
| |usertype|String|agent / account| | |usertype|String|agent / account| | ||
| Line 15: | Line 16: | ||
| |pwdtype|String|password type: plaintext/md5| | |pwdtype|String|password type: plaintext/md5| | ||
| |password|String|password| | |password|String|password| | ||
| - | |callbackFuc|String|callback function| | + | |status|String|<code>Get a list of agent in the corresponding state(all,idle,busy,ring,pause,acw,login,logout),Multiple states are separated by commas,ex:idle,busy |
| + | * all get the status of all agent | ||
| + | * idle get the idle agent | ||
| + | * busy get the call agent | ||
| + | * ring get the ring agent | ||
| + | * pause get the pause agent | ||
| + | * acw get the acw agent | ||
| + | * login get the login agent | ||
| + | * logout get the logout agent | ||
| + | </code>| | ||
| Line 22: | Line 32: | ||
| <code> | <code> | ||
| - | {code:code,message:message} | + | |Retuen|code|Retuen|message |
| </code> | </code> | ||
| Line 29: | Line 39: | ||
| ^ Value ^ Description ^ | ^ Value ^ Description ^ | ||
| - | |<code>{code:1,message:message}</code>|<code>{code:succeed,message:message} | + | |<code>|Retuen|1|Retuen|message</code>|<code>|Retuen|succeed|Retuen|message |
| message is current agent stat: | message is current agent stat: | ||
| - | agent name|agent No.|current status|status last duration|busy times|paused times|off times|meeting times|training times|break times|other times|busy duration|paused duration|off duration|meeting duration|training duration|break duration|other duration, ex: | + | agent No.:current status,agent No.:current status ex: |Retuen|1|Retuen|1005: idle,1006:ring</code>| |
| - | {code:1,message:Joe|8005|busy|85|7|1|1|2|1|1|1|120|10|20|60|10|10|10} | + | |<code>|Retuen|2|Retuen|message</code> |<code>|Retuen|failed|Retuen|message</code>| |
| - | If you didn't see agent name, means last name of the agent is empty | + | |
| - | agent state includes: idle, pause, ring, busy, acw, logout. | + | |
| - | all duration is seconds | + | |
| - | </code>| | + | |
| - | |<code>{code:2,message:message}</code> |<code>{code:failed,message:message}</code>| | + | |