Node.js SDK
info
The Node.js SDK is currently in development. See Node.js Samples for code examples using the REST API directly.
Anticipated Usage
npm install @ecourtdate/sdk
const { ECourtDate } = require('@ecourtdate/sdk');
const client = new ECourtDate({
clientId: process.env.ECD_CLIENT_ID,
clientSecret: process.env.ECD_CLIENT_SECRET,
region: 'us-east',
});
// Send a message
const message = await client.messages.sendOneOff({
to: '+15551234567',
subject: 'Court Reminder',
content: 'Your hearing is tomorrow at 9 AM.',
});
// List clients
const clients = await client.clients.list({ limit: 25 });