New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lotus-node

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lotus-node

Lotus Node.js API Wrapper

latest
Source
npmnpm
Version
1.0.234
Version published
Maintainers
2
Created
Source

Lotus Node.js Library

MIT License

Official Lotus Node library to capture and send events to any Lotus instance (self-hosted or cloud).

Installing

Install the lotus-node package for use in your node.js based backend.

npm install lotus-node

Initializing

First grab a new api key from the Settings tab. Then change the host to wherever you want to send data to and omit the line if you are using Lotus Cloud.

const lotus = new Lotus(api_key, {
    host: 'https://www.uselotus.app/', // You can omit this line if using Lotus Cloud
})

Currently Supported Methods

1. TrackEvent
2. Get All Customers
3. Get Customer Details
4. Create Customer
5. Create Subscription
6. Cancel Subscription
7. Change Subscription
8. Get All Subscriptions
9. Get Subscription Details
10. Get All Plans
11. Get Customer Access

Making calls

Please refer to the Lotus documentation for more information on how to use the library.

Questions?

Join our Slack community.

Thank you

This library is largely based on the posthog-node package.

Keywords

lotus

FAQs

Package last updated on 23 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts