Load the SDK
To get the SDK, you need to include a Javascript file that will asynchronously load the SDK into your web application.
- You can include it inside your
<head>or<body>tag. - You can add the
deferorasyncattributes to this script if page load time is a concern. - Once loaded, an object named
blinkSDKwill be set on thewindowobject, that contains all SDK's public methods
We recommend serving the SDK from our own hosting service, by including the following script tag in the head of the webpage:
<script src="https://blink.net/1.0/blink-sdk.js?clientId=YOUR_CLIENT_ID" type="text/javascript"></script>
<script src="https://test.blink.net/1.0/blink-sdk.js?clientId=YOUR_CLIENT_ID" type="text/javascript"></script>
Do not forget to add your
clientIdto the query params to initialize the SDK.