Developer SDK
Description
Installation
The package can be installed directly from NPM.
npm install --save @lcwd/developer-sdk
The NPM package is distributed both as a CommonJS and ES6 module. It should be used together with a module bundler, such as Webpack or Rollup.
We also distribute a UMD build of the package, which can be used directly in the browser.
<script src="https://unpkg.com/@lcwd/developer-sdk@latest/dist/developer-sdk.umd.min.js"></script>
Basic usage
const config: DeveloperAppConfig = {
appId: "xxxxx",
appAuth: {
mode: "popup",
accounts: {
client_id: 'xxxxx',
server_url: 'xxxxx',
},
}
};
const developerApp = await DeveloperApp.init(config);
...
developerApp.sdks.reporting.sendEvent(...);