From Bright Pattern Documentation
No edit summary |
No edit summary |
||
| Line 23: | Line 23: | ||
<script type="text/javascript" src="https://barco.brightpattern.com/agentdesktop/libs/servicepatternapi-dev.js"></script> | <script type="text/javascript" src="https://barco.brightpattern.com/agentdesktop/libs/servicepatternapi-dev.js"></script> | ||
=== Full Example Implementation === | |||
<html> | |||
<iframe width="100%" height="300" src="//jsfiddle.net/rt1f2z3h/embedded/html,result/" allowfullscreen="allowfullscreen" allowpaymentrequest frameborder="0"></iframe> | |||
</html> | |||
</translate> | </translate> | ||
Revision as of 18:28, 19 October 2023
<translate>= General Information= The API supports a number of desktop telephony functions, including call initiation, voice and screen recording, interaction completion, and the setting of interaction dispositions and notes.
These functions are available via a global object called window.bpspat.api.
Example
window.bpspat.api.dialNumber("1234567");
Object Creation
The object is created when the script file is included in the web page loaded into the Agent Desktop application as follows:
<script type="text/javascript" src="[agent-desktop-web-server]/libs/servicepatternapi-dev.js"></script>
or
<script type="text/javascript" src="[agent-desktop-web-server]/agentdesktop/libs/servicepatternapi-dev.js"></script>
Example
<script type="text/javascript" src="https://barco.brightpattern.com/libs/servicepatternapi-dev.js"></script>
or
<script type="text/javascript" src="https://barco.brightpattern.com/agentdesktop/libs/servicepatternapi-dev.js"></script>
Full Example Implementation
</translate>