class Twilio::NotificationsApi

Defined in:

twilio/api/notifications_api.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.new(api_client : Twilio::ApiClient = ApiClient.default) #

[View source]

Instance Method Detail

def account_sid : String #

[View source]
def account_sid=(account_sid : String) #

[View source]
def api_client : ApiClient #

[View source]
def api_client=(api_client : ApiClient) #

[View source]
def build_api_request_for_fetch_notification(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def 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


[View source]
def client_side_validation?(*args, **options) #

[View source]
def client_side_validation?(*args, **options, &) #

[View source]
def debugging?(*args, **options) #

[View source]
def debugging?(*args, **options, &) #

[View source]
def 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]


[View source]
def 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


[View source]
def 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


[View source]
def 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]


[View source]
def 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


[View source]
def 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


[View source]