@tnf-dev/api
TypeScript icon, indicating that this package has built-in type declarations

1.0.1-20 • Public • Published

@tnf-dev/api

Usage

  • 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);

Readme

Keywords

none

Package Sidebar

Install

npm i @tnf-dev/api

Weekly Downloads

34

Version

1.0.1-20

License

MIT

Unpacked Size

18.9 kB

Total Files

26

Last publish

Collaborators

  • thangved02