@dotinc/bouncer-client
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

@dotinc/bouncer-client

Usage

import { createClient } from "@dotinc/bouncer-client";

const client = createClient({
  apiKey: "123",
});

client.identify({
  tenant_id: "123",
  user_id: "123",
  email: "bouncer@berghain.de", // optional
  user_name: "Bouncer", // optional
});

client.seats.redeem({
  seatId: "123",
  subscriptionId: "123",
});

client.seats.reserve({
  identifier: {
    tenant_id: "123",
    user_id: "123",
  },
  invite_url: "",
});

client.seats.release({
  seatId: "123",
  subscriptionId: "123",
});

client.seats.request({ seatId: "123", subscriptionId: "123" });

Package Sidebar

Install

npm i @dotinc/bouncer-client

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

24.1 kB

Total Files

11

Last publish

Collaborators

  • nadilas