@rule/client
v0.4.0-beta.9
Published
HTTP API client for the Rule.io email marketing platform.
Readme
@rule/client
HTTP API client for the Rule.io email-marketing platform. Wraps the v2 and v3 endpoints for subscribers, automations, messages, templates, campaigns, exports, analytics, brand styles, and API keys.
import { RuleClient } from '@rule/client';
const client = new RuleClient({ apiKey: process.env.RULE_API_KEY! });
await client.subscribers.create({
email: '[email protected]',
tags: ['Newsletter'],
});Composes with
@rule/rcml— build email templates that the client sends viaclient.createAutomationEmail()/client.createCampaignEmail().
See the main @rule/sdk README for end-to-end usage.
