Twilio Plugin
This plugin implements functions for sending messages via Twilio.
Installation and settings
Install the NuGet package: WorkflowEngine.NETCore-TwilioPlugin.
Add the following namespaces to the usings section:
using OptimaJet.Workflow.Plugins;
Create a plugin object and arrange the required Settings:
var twilioPlugin = new TwilioPlugin();
// Here are your settings
// twilioPlugin.AccountSid = "AccountSid";
// twilioPlugin.AuthToken = "AuthToken";
Connect the plugin to the WorkflowRuntime:
var runtime = new WorkflowRuntime();
...
runtime.WithPlugin(twilioPlugin);
Settings
AccountSid
String: A parameter for access to Twilio.
Used for TwilioSendMessage.
AuthToken
String: A parameter for access to Twilio.
Used for TwilioSendMessage.
Actions
Read about actions.
TwilioSendMessage
Sends a message.
Parameters:
AccountSid
: String *
A parameter for access to Twilio.
The value is taken from AccountSid, if specified there.
AuthToken
: String *
A parameter for access to Twilio.
The value is taken from AuthToken, if specified there.
From
: String *
A string that contains the address of the sender of the email message.
To
: String *
A string that contains the addresses of the recipients of the email message.
Message
: String *
A string that contains the message body.