vero-ts
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Vero Typescript Client

A wrapper for Vero's public api using Typescript.

A newly updated one did not exist, so I made one.

License

MIT

Installing

npm install vero-ts

Sample Usage

Create an instance

import Vero from 'vero-ts';

const vero = new Vero('<YOUR_AUTH_TOKEN>');

Call the methods

// -- Track a user
const userId:string = 'someId';
const userEmail:string = 'someEmail@example.org'
const dataAboutTheUser:object = {
    someProperty: 'someValue',
    anotherProperty: 123
}
await vero.Users.track(userId, userEmail, dataAboutTheUser);
// --

// -- Call an event
// (Assume the above user info still applies)
const eventName = '<EVENT-NAME>';
const eventData = {
    eventProperty: 'value',
    eventObjectProperty: {
        objectProperty: 'something'
    },
    anotherProperty: 123
};
await vero.Events.track(userId, userEmail, eventName, eventData);

Readme

Keywords

Package Sidebar

Install

npm i vero-ts

Weekly Downloads

38

Version

0.0.5

License

MIT

Unpacked Size

8.16 kB

Total Files

13

Last publish

Collaborators

  • bdlegault