twilio

package
v0.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

README


title: Twilio weight: 4620

Twilio

This activity allows you to send a SMS via Twilio.

Installation

Flogo Web

This activity comes out of the box with the Flogo Web UI

Flogo CLI

flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/twilio

Schema

Inputs and Outputs:

{
  "input":[
    {
      "name": "accountSID",
      "type": "string"
    },
    {
      "name": "authToken",
      "type": "string"
    },
    {
      "name": "from",
      "type": "string"
    },
    {
      "name": "to",
      "type": "string"
    },
    {
      "name": "message",
      "type": "string"
    }
  ],
  "output": []
}

Settings

Setting Required Description
accountSID False The Twilio account SID
authToken False The Twilio auth token
from False The Twilio number you are sending the SMS from
to False The number you are sending the SMS to. This field should be in the format '+15555555555'
message False The SMS message

Examples

The below example sends 'my text message' to '617-555-5555' via Twilio:

{
  "id": "twilio",
  "name": "Send SMS Via Twilio",
  "description": "Simple Twilio Activity",
  "activity": {
    "ref": "github.com/TIBCOSoftware/flogo-contrib/activity/twilio",
    "input": {
      "accountSID": "A...9",
      "authToken": "A...9",
      "from": "+12016901385",
      "to": "+16175555555",
      "message": "my text message"
    }
  }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new TwilioActivity

Types

type TwilioActivity

type TwilioActivity struct {
	// contains filtered or unexported fields
}

TwilioActivity is a Twilio Activity implementation

func (*TwilioActivity) Eval

func (a *TwilioActivity) Eval(context activity.Context) (done bool, err error)

Eval implements activity.Activity.Eval

func (*TwilioActivity) Metadata

func (a *TwilioActivity) Metadata() *activity.Metadata

Metadata implements activity.Activity.Metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL