@tnfdev/api
v1.0.2
Published
## Usage
Readme
@tnfdev/api
Usage
Initialize the API client with the base URL of your API server.
import { Teknify } from '@tnfdev/api'; const teknify = new Teknify({ channelId: '<YOUR_CHANNEL_ID>', appId: '<YOUR_APP_ID>', apiKey: '<YOUR_API_KEY>', });Trigger a workflow using the API client.
const event = await teknify.trigger({ workflowIdentifier: '<YOUR_WORKFLOW_IDENTIFIER>', to: { subscriberId: '<USER_SUBSCRIBER_ID>', // The ID of the subscriber to whom the workflow will be sent }, }); console.log(event);
