With Twidget, you can send SMS messages to phones using the Send SMS
command. This functionality varies depending on the provider. Currently, we support Twilio as the SMS provider.
-
To use Twilio for SMS integrations, you will need:
A Twilio account ID
Twilio Auth Token
A Twilio-provided phone number
These credentials can be obtained by registering with Twilio.
To send an SMS:
Provide Twilio Credentials: Ensure that your Twilio account ID and Auth Token are correctly populated in your API settings.
Specify Phone Numbers: Input the phone number that you wish to send the SMS to.
Enter the message content: Populate the receiver's message content
By default, SMS commands sent via testing mode will succeed without actually sending an SMS. This prevents accidental messages during development.
To test real SMS messages:
You can send emails from Twidget using the Send Email
command.
-
The Send Email
command requires email settings:
By default, it will use the email details you provide in your API settings.
Alternatively, you can override the settings by selecting Custom Email Settings in the dropdown.
To send an email:
Provide Email Settings: If using custom settings, specify host, port, username, and password for your email provider.
Recipient Information: Populate the receiver's email, email subject, and email content.
By default, email commands sent via testing mode will succeed without actually sending an email, ensuring test emails aren’t sent by accident.
To test real emails:
Date
Twidget offers a variety of commands to manipulate date objects. Below are the available commands along with their respective descriptions, inputs, and outputs. Current Date. Description: Returns the current date and time. Output: - Type: DATE Add Time. Description: Returns the date plus a specified...
Return
The `return` command in Twidget is a special command used to halt the current command workflow and immediately return a specified result. This command overrides any subsequent processes and outputs the return result regardless of the rest of the workflow logic. This command is particularly useful fo...
Error Handling
When building applications with Twidget, you may encounter situations where you need to handle errors gracefully to ensure your application runs smoothly. Twidget provides two powerful commands for error handling: `try-catch` and `throw-error`. This documentation will guide you on how to use these c...
Loops
In Twidget, loops allow you to execute commands multiple times, either based on a condition or through a set number of iterations. Loops can also be nested, meaning you can run loops within other loops, creating complex logic for your tasks. List Loop. The `List Loop` command enables you to loop thr...
Miscellaneous
Twidget provides several miscellaneous commands to facilitate various tasks. Is Null. Description: Checks whether the provided value is null or not. Inputs: - value: The value to be checked. Output: - boolean: Returns `true` if the value is null; otherwise, returns `false`. Not Null. Description: Ch...