Socket
Book a DemoInstallSign in
Socket

@roadmapsh/scoop

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@roadmapsh/scoop

NodeJS sdk for Scoop

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Scoop Node.js SDK

Node.js SDK for Roadmap Scoop for managing subscribers.

  • Getting Started
  • Installation
  • Setup
  • Usage
  • Contributions
  • License

Getting Started

This SDK is written in TypeScript and is fully typed. It works with both TypeScript and JavaScript.

Install

Install @roadmapsh/scoop using your favorite package manager.

pnpm add @roadmapsh/scoop
# or
bun add @roadmapsh/scoop
# or
npm install @roadmapsh/scoop
# or
yarn add @roadmapsh/scoop

Setup

First generate an API key your hosted dashboard. Then, initialize the SDK with your API key.

import { Scoop } from '@roadmapsh/scoop';
export const scoop = new Scoop('your-api-key');

Usage

Subscribing to a list:

await scoop.subscribers.subscribe({
  email: 'john@doe.com',
  listId: 'list-id',
});

Unsubscribing from a list:

await scoop.subscribers.unsubscribe({
  email: 'john@doe.com',
  listId: 'list-id',
});

Assigning tags to a subscriber:

await scoop.subscribers.assignTags({
  email: 'john@doe.com',
  listId: 'list-id',
  addTags: ['tag-1', 'tag-2'],
});

Contributions

Feel free to submit pull requests, create issues, or spread the word.

License

MIT © Arik Chakma

Keywords

email

FAQs

Package last updated on 21 Feb 2024

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