メニュー

Expand
ページを評価:

Job Resource

The Job resource allows you to view and delete the requests for exports of arbitrary date ranges, submitted through the ExportCustom Job

Job properties

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

The type of communication – Messages, Calls

friendly_name
文字列 Not PII

The friendly name specified when creating the job

details
オブジェクト Not PII

This is a list of the completed, pending, or errored dates within the export time range, with one entry for each status with more than one day in that status

start_day
文字列 Not PII

The start time for the export specified when creating the job

end_day
文字列 Not PII

The end time for the export specified when creating the job

job_sid
sid<JS> Not PII

The job_sid returned when the export was created

webhook_url
文字列 Not PII

The optional webhook url called on completion

webhook_method
文字列 Not PII

This is the method used to call the webhook

email
文字列 Not PII

The optional email to send the completion notification to

url
url Not PII

Fetch a Job resource

GET
https://bulkexports.twilio.com/v1/Exports/Jobs/{JobSid}
パラメーター
Parameters in REST API format
job_sid
Path
GET sid<JS> Not PII

There are 4 possible status values for a Job. You may get different status values for each day, across the range of days you requested in the job. For instance, if you have requested 100 days, and request the status, 10 may be submitted, 20 in running, 30 in completed, and 40 in completedemptyrecords.

  • 申請済み
    • The Job has been successfully submitted and is in the queue to execute. Typically, executions should take less than one day.
  • Running
    • The job is currently running. The output should be available shortly. Multiple Jobs may run at the same time.
  • completed
    • The Job is completed, and the result files are available at the Days endpoint.
  • CompletedEmptyRecords
    • The Job has completed, however, no records for the requested resource have been found. An empty file will be available at the Day endpoint.
  • 失敗
    • The Job was attempted, but an error prevented completion. This is a final status, and the job has already been tried multiple times before this status.
例 1
        
        
        
        

        Delete a Job resource

        削除する
        https://bulkexports.twilio.com/v1/Exports/Jobs/{JobSid}
        パラメーター
        Parameters in REST API format
        job_sid
        Path
        削除する sid<JS> Not PII

        The unique string that that we created to identify the Bulk Export job

        例 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