On the Agent side, Glance Presence functionality can be integrated into web based or desktop agent tools.
Options for Invoking the Agent API
The Presence Agent API can be invoked via:
- JavaScript from the browser
- Web service API from the browser or desktop client application
- Web service API from a server
Error Handling
Some APIs will accept an onfail parameter, a function which will be called with an error code if an error occurs.
Error Codes
| Error | Description |
|---|---|
authorization | Agent is not authorized to carry out the requested action. |
visitornotpresent | Visitor is not present to receive a message that the agent is attempting to send. |
Errors can also be reported via an onerror function defined on the Presence.Visitor or Presence.Agent object.