LoginSignup
1
2

More than 5 years have passed since last update.

REST APIを使って期間を絞ったTwilioの通話ログを取得する

Posted at

Twilioの通話ログをREST APIを使って、期間を絞った通話ログを取得する方法を記載します。

// 以下パラメーターを自分のパラメーターに置き換えてください。
// your_account_sid, account SID, AuthToken
// URLエンコード前
curl 'https://api.twilio.com/2010-04-01/Accounts/[your_account_sid]/Calls.json?StartTime>=対象開始日&EndTime<=対象終了日' -u [account SID]:[AuthToken]

// URLエンコード後
curl 'https://api.twilio.com/2010-04-01/Accounts/[your_account_sid]/Calls.json?StartTime%3E=対象開始日&EndTime%3C=対象終了日' -u [account SID]:[AuthToken]

REST API使っててなんかうまくいかないなーと感じたらAPI Explorerを使ってみてください!

公式リファレンスはこちら

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2