Install package:
# npm
npm install @michilabs/sender-js
# yarn
yarn add @michilabs/sender-js
# pnpm
pnpm install @michilabs/sender-jsImport:
// ESM
import { createClient } from '@michilabs/sender-js'
// CommonJS
const { createClient } = require('@michilabs/sender-js')Example:
const sender = createClient('<your_access_token>')
const data = await sender.subscribers.list()- Subscribers (
subscribers) - Groups (
groups) - Segments (
segments) - Fields (
fields) - Statistics (
statistics) - Campaigns (
campaigns) - Workflows (
workflows)
- Clone this repository
- Enable Corepack using
corepack enable(usenpm i -g corepackfor Node.js < 16.10) - Install dependencies using
pnpm install - Run interactive tests using
pnpm dev
Made with 💙
Published under MIT License.