From Bright Pattern Documentation
Jump to: navigation, search
Tracy (talk | contribs)
No edit summary
 
Updated via BpDeleteTranslateTags script
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<translate>= General Information=
= 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.
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''.
These functions are available via a global object called ''window.bpspat.api''.


For example:
=== Example ===
window.bpspat.api.dialNumber("1234567");


''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>


The object is created when the script file is included in the web page loaded into the Agent Desktop application as follows:
or
 
''&lt;script type=&quot;text/javascript&quot; src=&quot;[agent-desktop-web-server]/app/libs/servicepatternapi-dev.js&quot;&gt;&lt;/script&gt;''


<script type="text/javascript" src="[agent-desktop-web-server]/agentdesktop/libs/servicepatternapi-dev.js"></script>


For example:
=== Example ===
<script type="text/javascript" src="https://barco.brightpattern.com/libs/servicepatternapi-dev.js"></script>


''&lt;script type=&quot;text/javascript&quot; src=&quot;''[http://barco.brightpattern.com/app/libs/servicepatternapi-dev.js ''https://barco.brightpattern.com/app/libs/servicepatternapi-dev.js'']''&quot;&gt;&lt;/script&gt;''
or


<script type="text/javascript" src="https://barco.brightpattern.com/agentdesktop/libs/servicepatternapi-dev.js"></script>


=== Full Example Implementation ===


<center>[[desktop-javascript-api-specification/Audience|< Previous]]  |  [[desktop-javascript-api-specification/DialNumber|Next >]]</center>
<html>
</translate>
<iframe width="100%" height="300" src="//jsfiddle.net/rt1f2z3h/embedded/html,result/" allowfullscreen="allowfullscreen" allowpaymentrequest frameborder="0"></iframe>
</html>

Latest revision as of 04:02, 29 May 2024

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

< Previous | Next >