Commit 3059113c authored by Jean-Yves LEBLEU's avatar Jean-Yves LEBLEU

2166 Update developper Guide

Remove shotgun dependency
Add jquery and how to get js files from xucserver project
parent c237681c
...@@ -7,37 +7,46 @@ Developers Guide ...@@ -7,37 +7,46 @@ Developers Guide
Integration Principles Integration Principles
====================== ======================
* Include the Cti and Callback javascript API from the Xuc Server * Download the javascript API files from projet `xucserver <https://gitlab.com/xivo.solutions/xucserver/>`_
on our `gitlab <https://gitlab.com/xivo.solutions/>`_ repository
:: ::
<script src="http://<xucserver>:<xucport>/assets/javascripts/shotgun.js" type="text/javascript"></script> wget https://gitlab.com/xivo.solutions/xucserver/raw/master/app/assets/javascripts/cti.js
<script src="http://<xucserver>:<xucport>/assets/javascripts/cti.js" type="text/javascript"></script> wget https://gitlab.com/xivo.solutions/xucserver/raw/master/app/assets/javascripts/callback.js
<script src="http://<xucserver>:<xucport>/assets/javascripts/callback.js" type="text/javascript"></script> wget https://gitlab.com/xivo.solutions/xucserver/raw/master/app/assets/javascripts/membership.js
<script src="http://<xucserver>:<xucport>/assets/javascripts/membership.js" type="text/javascript"></script> wget https://gitlab.com/xivo.solutions/xucserver/raw/master/app/assets/javascripts/xc_webrtc.js
wget https://gitlab.com/xivo.solutions/xucserver/raw/master/app/assets/javascripts/SIPml-api.js
* Include also the xc_webrtc and SIPml5 javascript APIs for the webRTC support: * Include the files in your projetcs
:: ::
<script src="http://<xucserver>:<xucport>/assets/javascripts/xc_webrtc.js" type="text/javascript"></script> <!-- jquery needed as a dependency CDN from https://code.jquery.com/ -->
<script src="http://<xucserver>:<xucport>/assets/javascripts/SIPml-api.js" type="text/javascript"></script> <script src="https://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous"></script>
.. _cti_authentication: <script src="http://<xucserver>:<xucport>/assets/javascripts/shotgun.js" type="text/javascript"></script>
<script src="cti.js" type="text/javascript"></script>
<script src="callback.js" type="text/javascript"></script>
<script src="membership.js" type="text/javascript"></script>
* Connect to the Xuc server using new Authentication token (see :ref:`rest_authentication`) <!-- Optionnaly Include also the xc_webrtc and SIPml5 javascript APIs for the webRTC support -->
:: <script src="xc_webrtc.js" type="text/javascript"></script>
<script src="SIPml-api.js" type="text/javascript"></script>
var wsurl = "ws://"+server+"/xuc/api/2.0/cti?token="+token;
Cti.WebSocket.init(wsurl,username,phoneNumber);
.. _cti_authentication:
* Connect to the Xuc server using XiVO client username and password (**DEPRECATED**) * Connect to the Xuc server using new Authentication token (see :ref:`rest_authentication`)
:: ::
var wsurl = "ws://"+server+"/ctichannel?username="+username+"&amp;agentNumber="+phoneNumber+"&amp;password="+password; var wsurl = "ws://"+server+"/xuc/api/2.0/cti?token="+token;
Cti.WebSocket.init(wsurl,username,phoneNumber); Cti.WebSocket.init(wsurl,username,phoneNumber);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment