Difference between revisions of "PEC-Developer/Current/SCAPI/AgentNamespace"
From Genesys Documentation
m (Text replacement - "\|Platforms?=([^\|]*)PureEngage([\|]*)" to "|Platform=$1GenesysEngage-onpremises$2") |
m (Text replacement - "\|Platform=([^\|]*)GenesysEngage-onpremises([\|]*)" to "|Platform=$1GenesysEngage-cloud$2") |
||
Line 5: | Line 5: | ||
|Context=Learn about the Agent namespace methods and type definitions in the Service Client API. | |Context=Learn about the Agent namespace methods and type definitions in the Service Client API. | ||
|ComingSoon=No | |ComingSoon=No | ||
− | |Platform=GenesysEngage- | + | |Platform=GenesysEngage-cloud |
|Prereq= | |Prereq= | ||
|Section={{Section | |Section={{Section |
Revision as of 02:31, July 25, 2020
Learn about the Agent namespace methods and type definitions in the Service Client API.
Methods
The Agent namespace includes the following methods:
get
Signature | <static> get() → topic=AgentNamespace |
---|---|
Description | Gets the agent's attributes. |
Returns | agent.Agent |
getState
Signature | <static> getState() → topic=MediaNamespace |
---|---|
Description | Gets the agent's state. |
Returns | media.State |
getStateList
Signature | <static> getStateList() → {Array.<media.State>} |
---|---|
Description | Gets the list of possible agent states. |
Returns | Array.<media.State> |
setState
Signature | <static> setState(stateOperationName) | ||||||
---|---|---|---|---|---|---|---|
Description | Sets the agent's state. | ||||||
Parameters |
|
Type definitions
The agent namespace includes the following object types:
Agent
Description | Represents the JSON structure of the agent. | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Object | |||||||||||||||
Properties |
|
Comments or questions about this documentation? Contact us for support!