ut-port-skype

7.2.6 • Public • Published

ut-port-skype

Properties

Use the screenshots below to define the following properties:

Skype

  • Bot properties
    • appId - use Microsoft App Id, highlighted in the screenshot below
    • secret - create a client secret from certificate & secrets (click on Manage next to Microsoft App Id)
  • Context properties
    • clientId - set to skype/<Bot handle>, where <Bot handle> is the value highlighted in the screenshot
    • accessToken - same value as in secret parameter
    • name - use Display name (skype), where Display name is the string highlighted in the screenshot

alt alt

Webchat

  • Bot properties - Use the same parameters as for skype
  • Context properties
    • clientId - use webchat/<Bot handle>, where <Bot handle> is the value highlighted in the first screenshot above
    • accessToken - the first one of the secret keys pair (see the screenshots below)
    • name - use Display name (webchat), where Display name is the string highlighted in the first screenshot above

alt alt

Embedding the Web Chat

There are 3 approaches of embedding the Web Chat in an external page:

  1. Put an iframe directly and place the Web Chat url as a source.

    Where the correct parameters should be set:

    • {hostname} - implementation hostname
    • {appId} - as described in the skype section
    • {clientId} - as described in the webchat section
    <html>
    <head></head>
    <body>
        <iframe src="https://{hostname}/webchat/{appId}/{clientId}"></iframe>
    </body>
    </html>
  2. Use UT webchat script. Again set the correct hostname, appId and clientId as described for the first approach

    <html>
    <head>
        <script src="https://{hostname}/webchat/{appId}/{clientId}/webchat.js"></script>
    </head>
    <body>
        ...
    </body>
    </html>
  3. The third approach is mainly suitable for quick testing against an existing site. Simply create a bookmark and paste the following as URL. Again set the correct hostname, appId and clientId as described for the first approach

    javascript:void((function(){var s = document.createElement('script');
    s.setAttribute('src', 'https://{hostname}/webchat/{appId}/{clientId}/webchat.js');
    document.body.appendChild(s);})())

Readme

Keywords

none

Package Sidebar

Install

npm i ut-port-skype

Weekly Downloads

0

Version

7.2.6

License

Apache-2.0

Unpacked Size

355 kB

Total Files

14

Last publish

Collaborators

  • kalin.krustev