/lotus-client-sdk

Lotus Web Client SDK

Primary LanguageTypeScript

Lotus Client SDK

MIT License

Official Lotus Web Client SDK to capture and send events to any Lotus instance (self-hosted or cloud).

Installing

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

npm install lotus-client-sdk

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. Get Customer Details
2. Get All Subscriptions
3. Get All Plans
4. Get Plan Details
5. List All Invoices
6. Get Invoice Details
7. Get Invoice PDF Details
8. Get Feature Access
9. Get Metric Access

Making calls

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

Questions?

Thank you