@clientify/api-client
v0.1.1
Published
TypeScript/JavaScript client for Clientify API
Maintainers
Readme
Clientify API Client (TypeScript/JavaScript)
TypeScript/JavaScript client for the Clientify REST API.
- API docs:
https://newapi.clientify.com/ - Default base URL:
https://api-plus.clientify.com/v2
Install
npm install @clientify/api-clientUsage
import { ClientifyClient } from '@clientify/api-client';
const client = new ClientifyClient({
apiKey: process.env.CLIENTIFY_API_KEY!,
});
const contact = await client.contacts.create({
first_name: 'Ada',
last_name: 'Lovelace',
email: '[email protected]',
});
console.log(contact.id);Configuration
const client = new ClientifyClient({
apiKey: process.env.CLIENTIFY_API_KEY!,
// baseUrl: 'https://api-plus.clientify.com/v2',
// timeoutMs: 30_000,
});Notes
- Some list/read endpoints require a
fieldsquery parameter; this client sets safe defaults for common endpoints and lets you override them when needed. - Designed for Node.js usage (it uses
axios).
License
MIT
