メニュー

Expand
ページを評価:

Export Custom Job Resource

Custom Jobs allow you to create exports for any date range. If the date range spans multiple days, they will generate separate output days. Jobs can be deleted with the Job Resource. When a Job successfully completes, the results are visible as days in the Day Resource.

ExportCustomJob properties

Resource Properties in REST API format
friendly_name
文字列 Not PII

The friendly name specified when creating the job

resource_type
文字列 Not PII

The type of communication – Messages, Calls

start_day
文字列 Not PII

The start day for the custom export specified when creating the job

end_day
文字列 Not PII

The end day for the export specified when creating the job

webhook_url
文字列 Not PII

The optional webhook url called on completion of the job. If this is supplied, WebhookMethod must also be supplied.

webhook_method
文字列 Not PII

This is the method used to call the webhook on completion of the job. If this is supplied, WebhookUrl must also be supplied.

email
文字列 Not PII

The optional email to send the completion notification to

job_sid
sid<JS> Not PII

The unique job_sid returned when the custom export was created

details
オブジェクト Not PII

The details of a job which is an object that contains an array of status grouped by status state. Each status object has a status string, a count which is the number of days in that status, and list of days in that status. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a status object for SUBMITTED each with its own count and list of days.

Create an ExportCustomJob resource

post
https://bulkexports.twilio.com/v1/Exports/{ResourceType}/Jobs
パラメーター
Parameters in REST API format
resource_type
Path
post 文字列 Not PII

The type of communication – Messages or Calls

start_day
必須
post 文字列 Not PII

The start day for the custom export specified as a string in the format of yyyy-mm-dd

end_day
必須
post 文字列 Not PII

The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day.

friendly_name
必須
post 文字列 Not PII

The friendly name specified when creating the job

webhook_url
オプション
post 文字列 Not PII

The optional webhook url called on completion of the job. If this is supplied, WebhookMethod must also be supplied. If you set neither webhook nor email, you will have to check your job's status manually.

webhook_method
オプション
post 文字列 Not PII

This is the method used to call the webhook on completion of the job. If this is supplied, WebhookUrl must also be supplied.

email
オプション
post 文字列 Not PII

The optional email to send the completion notification to. You can set both webhook, and email, or one or the other. If you set neither, the job will run but you will have to query to determine your job's status.

例 1
        
        
        
        

        Read multiple ExportCustomJob resources

        GET
        https://bulkexports.twilio.com/v1/Exports/{ResourceType}/Jobs
        パラメーター
        Parameters in REST API format
        resource_type
        Path
        GET 文字列 Not PII

        The type of communication – Messages, Calls

        例 1
              
              
              
              
              ページを評価:

              ヘルプが必要ですか?

              誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。

                    
                    
                    

                    フィードバックくださりありがとうございます!

                    We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

                    Sending your feedback...
                    🎉 Thank you for your feedback!
                    Something went wrong. Please try again.

                    Thanks for your feedback!

                    Refer us and get $10 in 3 simple steps!

                    ステップ1

                    Get link

                    Get a free personal referral link here

                    ステップ2:

                    Give $10

                    Your user signs up and upgrade using link

                    ステップ3

                    Get $10

                    1,250 free SMSes
                    OR 1,000 free voice mins
                    OR 12,000 chats
                    OR more