Twidget includes a suite of session storage commands that enable no-code interaction with the browser’s sessionStorage
API. These tools allow temporary storage of key-value data for the current page session.
Session storage commands allow developers to manage transient data tied to a single page session. Unlike local storage, this data is cleared when the tab or browser is closed, making it suitable for non-persistent state handling, such as temporary user input or UI state.
Session Scope: Data is retained only for the duration of the browser tab session.
String-Based Access: All keys are strings, and values are stored and retrieved as text.
Temporary State: Ideal for managing ephemeral state that doesn’t need to persist between sessions.
Set Item: Stores a value under a specified key in session storage. Accepts any data type.
Get Item: Retrieves a stored value by key and returns it as text.
Remove Item: Deletes a specific key-value pair from session storage.
Clear: Clears all data associated with the current session.
These commands enable quick and flexible session-based data handling within Twidget, without requiring any manual JavaScript code.
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...
Send External HTTP Request
Using Twidget, you can send external HTTP requests effortlessly. This functionality allows you to communicate with external servers or APIs. Below, you will find the necessary parameters and structure to set up an HTTP request. Parameters. - URL: The endpoint to which the request will be sent. - Met...
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...
Send Message
Send SMS Command. 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 Tw...
Managing Files
Twidget offers a set of commands to manipulate files in your file store. Below are the descriptions and usage of each command to help you understand how to utilize them effectively. Get File. Retrieve a file via file path. Inputs: - `path`: The file path to retrieve the file from. Outputs: - `filena...