qwestive-client-sdk
v0.1.13
Published
Qwestive client sdk exposes a npm package that will be used to track invitees and conversion events
Downloads
9
Maintainers
Readme
📝 Table of Contents
🧐 About
Qwestive client sdk is a npm package that can be used to register invitees
🏁 Getting Started
These instructions will get you started with the project up and running on your local machine for development.
Prerequisites
- node: v16.20.0
- npm: 8.19.4
- yarn: 1.22.19
Installation
Any of the below ways can be used to add the package to your existing web app
NPM
npm install qwestive-client-sdk
Yarn
yarn add qwestive-client-sdk
Browser
<script src="https://unpkg.com/[email protected]/dist/index.js"></script>
🎈 Usage
import QwestiveClientSDK from 'qwestive-client-sdk';
async function testQwestiveClientSDK() {
const qwestiveClient = new QwestiveClientSDK(
QWESTIVE_REFERRAL_PROJECT_ID,
QWESTIVE_REFERRAL_API_KEY,
);
await qwestiveClient.init();
await qwestiveClient.setReferral({
publicKey: '0x71C7656EC7ab88b098defB751B7401B5f6d8976F'
});
}
testQwestiveClientSDK();
Releases
- Release 0.1.13
- Bug fixes and improvements
setReferral
method now sends proper response as mentioned in docs rather than empty response orundefined