-
Initialize the API client with the base URL of your API server.
import { Teknify } from '@tnf-dev/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);
@tnf-dev/api
1.0.1-20 • Public • Published Readme
Keywords
nonePackage Sidebar
Install
npm i @tnf-dev/api
Repository
Weekly Downloads
34
Version
1.0.1-20
License
MIT
Unpacked Size
18.9 kB
Total Files
26