Runtime Client
Twilio Runtime Client provides a simple and intuitive way of orchestrating the various parts of the Twilio Runtime. Using the Runtime Client, developers can reference other Functions to better organize their code, and access configuration stored in Assets.
Runtime Client Methods
Method | Return Type | Description |
getAssets() |
Array of Assets | Provides an array of private Asset objects that can be used to retrieve files served on Twilio Assets. |
getFunctions() |
Array of Functions | Provides an array of Function objects that can be used to compose code hosted on Twilio Functions. |
Assets
The Asset object allows developers to load and reference files stored in Twilio Assets. This is ideal for configuration data or minified libraries.
Asset Properties
Property | Type | Description |
path |
String | String specifying the location of the Asset |
Functions
The Function object enables developers to compose complex applications by allowing them to include and execute code stored in multiple Functions.
Property | Type | Description |
path |
String | String specifying the location of the Function |
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.