Skip to content

Latest commit

 

History

History
150 lines (84 loc) · 8.08 KB

Api20100401NotificationApi.md

File metadata and controls

150 lines (84 loc) · 8.08 KB

\Api20100401NotificationApi

All URIs are relative to https://api.twilio.com

Method HTTP request Description
fetch_call_notification GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json
fetch_notification GET /2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json
list_call_notification GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json
list_notification GET /2010-04-01/Accounts/{AccountSid}/Notifications.json

fetch_call_notification

crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance fetch_call_notification(account_sid, call_sid, sid)

Parameters

Name Type Description Required Notes
account_sid String The SID of the Account that created the Call Notification resource to fetch. [required]
call_sid String The Call SID of the Call Notification resource to fetch. [required]
sid String The Twilio-provided string that uniquely identifies the Call Notification resource to fetch. [required]

Return type

crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_notification

crate::models::ApiPeriodV2010PeriodAccountPeriodNotificationInstance fetch_notification(account_sid, sid)

Fetch a notification belonging to the account used to make the request

Parameters

Name Type Description Required Notes
account_sid String The SID of the Account that created the Notification resource to fetch. [required]
sid String The Twilio-provided string that uniquely identifies the Notification resource to fetch. [required]

Return type

crate::models::ApiPeriodV2010PeriodAccountPeriodNotificationInstance

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_call_notification

crate::models::ListCallNotificationResponse list_call_notification(account_sid, call_sid, log, message_date, message_date_less_than, message_date_greater_than, page_size, page, page_token)

Parameters

Name Type Description Required Notes
account_sid String The SID of the Account that created the Call Notification resources to read. [required]
call_sid String The Call SID of the Call Notification resources to read. [required]
log Option<i32> Only read notifications of the specified log level. Can be: 0 to read only ERROR notifications or 1 to read only WARNING notifications. By default, all notifications are read.
message_date Option<String> Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.
message_date_less_than Option<String> Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.
message_date_greater_than Option<String> Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.
page_size Option<i32> How many resources to return in each list page. The default is 50, and the maximum is 1000.
page Option<i32> The page index. This value is simply for client state.
page_token Option<String> The page token. This is provided by the API.

Return type

crate::models::ListCallNotificationResponse

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_notification

crate::models::ListNotificationResponse list_notification(account_sid, log, message_date, message_date_less_than, message_date_greater_than, page_size, page, page_token)

Retrieve a list of notifications belonging to the account used to make the request

Parameters

Name Type Description Required Notes
account_sid String The SID of the Account that created the Notification resources to read. [required]
log Option<i32> Only read notifications of the specified log level. Can be: 0 to read only ERROR notifications or 1 to read only WARNING notifications. By default, all notifications are read.
message_date Option<String> Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.
message_date_less_than Option<String> Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.
message_date_greater_than Option<String> Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.
page_size Option<i32> How many resources to return in each list page. The default is 50, and the maximum is 1000.
page Option<i32> The page index. This value is simply for client state.
page_token Option<String> The page token. This is provided by the API.

Return type

crate::models::ListNotificationResponse

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]