Runtimeクライアント
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クライアントメソッド
Method | リターンタイプ | 概要 |
getAssets() |
Assetsの配列 | Twilio Assets上でアクセスできるファイルの取得に使用できるAssetオブジェクトの配列を返します。 |
getFunctions() |
Functionsの配列 | Twilio Functionsでホストされるコードの作成に使用できるFunctionオブジェクトの配列を返します。 |
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のプロパティー
プロパティ | Type | 概要 |
path |
文字列 | Assetの場所を指定する文字列です |
Assetのファイルパスの取得方法の例
Assetに保存されたサードパーティーのライブラリーを読み込む方法についての例
Assetのコンテンツを読み込む方法の例
Functions
Functionオブジェクトを使用すると、複数のFunctionに保存されたコードをインクルードおよび実行できるようにすることで、開発者は複雑なアプリケーションを作成できるようになります。
プロパティ | Type | 概要 |
path |
文字列 | Functionの場所を指定する文字列です |
Functionのファイルパスの取得方法の例
Functionからのコードのインクルード方法の例
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。