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:
Conversion
Overview. Twidget's conversion commands allow you to easily convert different data types to the required format. Below is a list of the available conversion commands and examples of how to use them. The `Convert to Text` command converts the provided value to a text (string) format. Examples: - `123...
Math
Twidget offers a variety of commands to manipulate numbers. Below are the math commands available, along with their descriptions, inputs, and outputs. Sum. Description: Adds together a list of numbers and returns the sum. - Inputs: - `numbers`: A list of numbers to be added together. - Output: A sin...
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...
Local Storage
Twidget provides a set of local storage commands that enable interaction with the browser’s `localStorage` API through a no-code interface. These commands are useful for storing, retrieving, and managing key-value data persistently within the current domain context. Purpose. These commands abstract ...
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...