Installation
Include the Integry SDK
UMD Build
Include the Universal Module Definition SDK file on your page just before the closing </body>
tag.
jsDelivr
<script src="https://cdn.jsdelivr.net/npm/@integry/sdk/dist/umd/index.umd.js"></script>
unpkg
<script src="https://unpkg.com/@integry/sdk/dist/umd/index.umd.js"></script>
This will make the IntegryJS
global available on the window
object.
tip
Please make sure the SDK has loaded before accessing methods. You can access the global in the window onload
event or by adding an event listener to listen to the document DOMContentLoaded
event like shown.
index.html
document.addEventListener('DOMContentLoaded', (event) => {
new IntegryJS(config);
});
NPM Module
The SDK is available as a module which can be installed via npm or yarn. Download and install the SDK using the package manager of your choice.
- npm
- Yarn
npm i -S @integry/sdk
yarn add @integry/sdk
You can now use the SDK with a module bundler. 🚀
Next Steps
Now that we have the SDK installed, let us move on to a simple tutorial to quickly get up and running. ⚡️