0.7.0-alpha.1 • Published 3 months ago

@flink-app/sms-plugin v0.7.0-alpha.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Flink API Docs

A FLINK plugin that makes it possible to send sms

Usage

Install plugin to your flink app project:

npm i -S @flink-app/sms-plugin

Setup

With 46 elks

Add and configure plugin in your app startup (probable the index.ts in root project):

import { smsPlugin, sms46elksClient } from "@flink-app/sms-plugin";

function start() {
  new FlinkApp<AppContext>({
    name: "My app",
    plugins: [
        // Register plugin
        smsPlugin({
          client: new sms46elksClient({
            username: "XX",
            password: "YY",
          }),
        }),
    ],
  }).start();
}

Add plugin ctx to Ctx.ts in root project

import { smsPluginContext } from "@flink-app/sms-plugin";

export interface Ctx extends FlinkContext<smsPluginContext> {

}

Send sms

Send email from your handlers by using the the context

 await ctx.plugins.smsPlugin.client.send({
    to : ["+4612345678"],
    from : "Sender",
    message : "Hello world"
    
  })
0.7.0-alpha.1

3 months ago

0.7.0-alpha.0

10 months ago

0.5.0

1 year ago

0.6.0

1 year ago

0.4.7

1 year ago

0.4.5

1 year ago

0.4.6

1 year ago

0.4.4

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.12

1 year ago

0.4.2

1 year ago

0.3.11

1 year ago

0.3.9

2 years ago

0.3.8

2 years ago