0.1.14 • Published 11 months ago
@cohostvip/cohost-node v0.1.14
@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 eventevents.tickets(id)– Fetch tickets for an eventorders.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
11 months ago
0.1.13
11 months ago
0.1.12
11 months ago
0.1.11
12 months ago
0.1.10
12 months ago
0.1.9
12 months ago
0.1.8
12 months ago
0.1.7
12 months ago
0.1.6
12 months ago
0.1.5
12 months ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.12
1 year ago
0.0.11
1 year ago
0.0.7
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago