ExportConfiguration Resource
The Export Configuration for a resource has two uses:
- setting automatic generation of files by setting "enabled" to true (in the case of Editions customers)
- setting the callback method for when the automatic generation of the file has completed
You can send this via:
- Webhook
- メール
The webhook_method must be either GET or POST, and webhook_url should be the URL of the service you want to call when the file is available. For email, the email parameter should be an email address.
ExportConfiguration properties
Resource Properties in REST API format | |
---|---|
enabled
|
If true, Twilio will automatically generate every day's file when the day is over. |
webhook_url
|
Stores the URL destination for the method specified in webhook_method. |
webhook_method
|
Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url |
resource_type
|
The type of communication – Messages, Calls, Conferences, and Participants |
url
|
The URL of this resource. |
Fetch an ExportConfiguration resource
https://bulkexports.twilio.com/v1/Exports/{ResourceType}/Configuration
パラメーター
Parameters in REST API format | |
---|---|
resource_type
Path
|
The type of communication – Messages, Calls, Conferences, and Participants |
例 1
例 2
Update an ExportConfiguration resource
https://bulkexports.twilio.com/v1/Exports/{ResourceType}/Configuration
パラメーター
Parameters in REST API format | |
---|---|
resource_type
Path
|
The type of communication – Messages, Calls, Conferences, and Participants |
enabled
オプション
|
If true, Twilio will automatically generate every day's file when the day is over. |
webhook_url
オプション
|
Stores the URL destination for the method specified in webhook_method. |
webhook_method
オプション
|
Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url |
例 1
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。