The HTTP API

The Blocking API

The blocking API is intended for use when developing stateless clients. When using the blocking API, certain methods result in the creation of a resource. The Agent Login [AL] method is one such example.

To log in an agent one might issue a request:

http://host/​softdial/​scc/​CG/​default/​AG/​AL?AN=Fred&​QI=FredUser

or

http://host/​softdial/​scc/​CallGem/​default/​Agent/​AgentLogin?AgentName=Fred&​UserIdentifier=FredUser

On successful creation of agent Fred, the agent name is the resource used in the path:

http://host/​softdial/​scc/​CG/​default/​AG/​Fred/​AA

or

http://host/​softdial/​scc/​CallGem/​default/​Agent/​Fred/​AgentAvailable

Successful response to blocking APIs relating to a resource is 200 (OK), with a JSON object representing the resource state. This is in the same form as returned by the GetState and PollState methods (see Requesting resource state above).

 

Copyright © 2004 - 2019  Sytel Limited