0.1.14 • Published 5 months ago

@cohostvip/cohost-node v0.1.14

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

@cohostvip/cohost-node

Official Node.js SDK for interacting with the Cohost API


✨ Features

  • TypeScript-first API client
  • Supports Node.js >=18
  • Automatically unwraps { status: 'ok', data: ... } responses
  • Supports ESM and CommonJS

📦 Installation

npm install @cohostvip/cohost-node
# or
pnpm add @cohostvip/cohost-node

🧱 Usage

import { CohostClient } from '@cohostvip/cohost-node';

const client = new CohostClient({
  token: 'your-api-token',
});

const event = await client.events.fetch('event-id');
const tickets = await client.events.tickets('event-id');
const order = await client.orders.fetch('order-id', 'user-id');

🧩 API Coverage

This SDK currently supports:

  • events.fetch(id) – Fetch a single event
  • events.tickets(id) – Fetch tickets for an event
  • orders.fetch(id, uid) – Fetch an order

More endpoints coming soon.


🛠 Environment Requirements

  • Node.js 18 or later
  • An active Cohost API token

🗒️ Changelog

See the latest changes here.


🚧 Roadmap

Planned features and improvements are tracked here.


📄 License

ISC © Cohost

0.1.14

5 months ago

0.1.13

5 months ago

0.1.12

5 months ago

0.1.11

6 months ago

0.1.10

6 months ago

0.1.9

6 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

0.0.12

6 months ago

0.0.11

6 months ago

0.0.7

6 months ago

0.0.10

6 months ago

0.0.9

6 months ago

0.0.8

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago