The MSaaS SDK for JavaScript is the easist way to integrate your web site with Microsoft support products. It provides a rich set of client-side functionality that:
- Makes it easy to call into Modalities API.
- Enables you to use Assisted Support features including Chat, Callback and Schedule Callback.
- Enables you to use the Virtual Agent.
- Enables you to use the Survey.
- Enables you to use MSaaS Search API & MSaaS Suggest API.
Download
The SDK is available for download in minified and unminified files on a CDN
Release 2.0.17170.2:
Unminified: https://cdn.support.services.microsoft.com/support-web-sdk/v2/2.0.17170.2/support.sdk.all.js
Minified: https://cdn.support.services.microsoft.com/support-web-sdk/v2/2.0.17170.2/support.sdk.all.min.js
API Reference: Documentation
Latest Release:
Unminified: https://cdn.support.services.microsoft.com/support-web-sdk/v2/latest/support.sdk.all.js
Minified: https://cdn.support.services.microsoft.com/support-web-sdk/v2/latest/support.sdk.all.min.js
API Reference: Documentation
Latest Release Candidate:
Unminified: https://cdn.support.services.microsoft.com/support-web-sdk/v2/rc/support.sdk.all.js
Minified: https://cdn.support.services.microsoft.com/support-web-sdk/v2/rc/support.sdk.all.min.js
API Reference: Documentation
Using the SDK
To use the SDK on your site, add the following script tags:
<script src="https://cdn.support.services.microsoft.com/support-web-sdk/v2/latest/support.sdk.all.js" type="text/javascript"></script><script type="text/javascript"> var config = { partnerId: "yourPartnerId", appId: "yourAppId" }; MsSupportSdk.init(config) .then( function(){ // success callback // Sdk initialized, start using features (chat, virtualAgent, etc ...) provided by the SDK }, function(error) { // error callback console.log(error); });</script>