class

Twilio::NotificationsApi

Inherits Reference / Object

Constants

FETCH_NOTIFICATION_MAX_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_NOTIFICATION_MAX_LENGTH_FOR_SID = 34
FETCH_NOTIFICATION_MIN_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_NOTIFICATION_MIN_LENGTH_FOR_SID = 34
FETCH_NOTIFICATION_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
FETCH_NOTIFICATION_PATTERN_FOR_SID = /^NO[0-9a-fA-F]{32}$/
LIST_NOTIFICATION_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_NOTIFICATION_MAX_LENGTH_FOR_ACCOUNT_SID = 34
LIST_NOTIFICATION_MIN_FOR_PAGE_SIZE = Int32.new("1")
LIST_NOTIFICATION_MIN_LENGTH_FOR_ACCOUNT_SID = 34
LIST_NOTIFICATION_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/

Constructors

new(api_client : Twilio::ApiClient = ApiClient.default)
Source

Instance methods

account_sid
Source
account_sid=(account_sid : String)
Source
api_client
Source
api_client=(api_client : ApiClient)
Source
build_api_request_for_fetch_notification(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Crest::Request

@return Crest::Request

Source
build_api_request_for_list_notification(*, account_sid : String | Nil = @account_sid, log : Int32 | Nil = nil, message_date : Time | Nil = nil, message_date_before : Time | Nil = nil, message_date_after : Time | Nil = nil, page_size : Int32 | Nil = nil) : Crest::Request

@return Crest::Request

Source
client_side_validation?(*args, **options)
Source
client_side_validation?(*args, **options, &)
Source
debugging?(*args, **options)
Source
debugging?(*args, **options, &)
Source
fetch_notification(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Twilio::NotificationInstance

Fetch a notification belonging to the account used to make the request @required @param account_sid [String?] The SID of the Account that created the Notification resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Notification resource to fetch. @return [Twilio::NotificationInstance]

Source
fetch_notification(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil

Fetch a notification belonging to the account used to make the request @required @param account_sid [String?] The SID of the Account that created the Notification resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Notification resource to fetch. @return nil

Source
fetch_notification_with_http_info(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Tuple(Twilio::NotificationInstance, Int32, Hash(String, Array(String) | String))

Fetch a notification belonging to the account used to make the request @required @param account_sid [String?] The SID of the Account that created the Notification resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Notification resource to fetch. @return [Tuple(Twilio::NotificationInstance, Integer, Hash)] Twilio::NotificationInstance, response status code and response headers

Source
list_notification(*, account_sid : String | Nil = @account_sid, log : Int32 | Nil = nil, message_date : Time | Nil = nil, message_date_before : Time | Nil = nil, message_date_after : Time | Nil = nil, page_size : Int32 | Nil = nil) : Twilio::ListNotificationResponse

Retrieve a list of notifications belonging to the account used to make the request @required @param account_sid [String?] The SID of the Account that created the Notification resources to read. @optional @param log [Int32?] 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. @optional @param message_date [Time?] 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. @optional @param message_date_before [Time?] 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. @optional @param message_date_after [Time?] 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. @optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000. @return [Twilio::ListNotificationResponse]

Source
list_notification(*, account_sid : String | Nil = @account_sid, log : Int32 | Nil = nil, message_date : Time | Nil = nil, message_date_before : Time | Nil = nil, message_date_after : Time | Nil = nil, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil

Retrieve a list of notifications belonging to the account used to make the request @required @param account_sid [String?] The SID of the Account that created the Notification resources to read. @optional @param log [Int32?] 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. @optional @param message_date [Time?] 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. @optional @param message_date_before [Time?] 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. @optional @param message_date_after [Time?] 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. @optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000. @return nil

Source
list_notification_with_http_info(*, account_sid : String | Nil = @account_sid, log : Int32 | Nil = nil, message_date : Time | Nil = nil, message_date_before : Time | Nil = nil, message_date_after : Time | Nil = nil, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListNotificationResponse, Int32, Hash(String, Array(String) | String))

Retrieve a list of notifications belonging to the account used to make the request @required @param account_sid [String?] The SID of the Account that created the Notification resources to read. @optional @param log [Int32?] 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. @optional @param message_date [Time?] 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. @optional @param message_date_before [Time?] 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. @optional @param message_date_after [Time?] 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. @optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000. @return [Tuple(Twilio::ListNotificationResponse, Integer, Hash)] Twilio::ListNotificationResponse, response status code and response headers

Source