blip-sdk-web
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "blip-sdk-web", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Blip SDK for web", | ||
@@ -5,0 +5,0 @@ "main": "sdk/dist/blipWebSdk.js", |
@@ -14,21 +14,29 @@ | ||
```html | ||
<script src="https://unpkg.com/blip-sdk-web" type="text/javascript"></script> | ||
<script> | ||
(function () { | ||
var s = document.createElement('script'); | ||
s.type = 'text/javascript'; | ||
s.src = 'https://cdn.rawgit.com/takenet/blip-sdk-web/3ba6c521/Releases/0.0.3/blip-web-sdk.js'; | ||
s.async = 1; | ||
var x = document.getElementsByTagName('script')[0]; | ||
x.parentNode.insertBefore(s, x); | ||
//Execute script with custom API KEY | ||
window.onload=function(){ | ||
(new BlipWebSDK.ChatBuilder) | ||
.withApiKey("PUT-YOUR-API-KEY-HERE") | ||
.build() | ||
} | ||
})(); | ||
(function () { | ||
new BlipWebSDK.ChatBuilder() | ||
.withApiKey('A32A04F6-6B10-42D9-B1FB-D2ED9C219DB4') | ||
.build(); | ||
})(); | ||
</script> | ||
``` | ||
Via npm | ||
-------- | ||
If you are using ES6, simply install the `blip-sdk-web` package from the npm registry. | ||
npm install blip-sdk-web | ||
###Instantiate the BlipSdkWeb class | ||
```javascript | ||
import * as BlipWebSDK from 'blip-sdk-web'; | ||
new BlipWebSDK.ChatBuilder() | ||
.withApiKey('PUT-YOUR-API-KEY-HERE') | ||
.build(); | ||
``` | ||
License | ||
@@ -35,0 +43,0 @@ ------- |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37553
59