reodotdev
v1.0.0
Published
A utility tool to tap into usage behaviour and relay metrics
Downloads
20,075
Readme
Quick start
NPM
npm i reodotdev
# or
yarn add reodotdevimport { loadReoScript } from 'reodotdev'
// Declare clientID from environment variable or directly as string
const clientID = process.env.CLIENT_ID || "XXXXXXXXXX";
// Resolve promise to get access to methods on Reo
const reoPromise = loadReoScript({ clientID });
reoPromise
.then(Reo => {
Reo.init({ clientID });
})const identity = {
username: '[email protected]',
type: 'email', // can be one of email, github, linkedin, gmail, userID,
firstname: 'John',
lastname: 'Doe',
company: 'Microsoft'
}
Reo.identify(identity);