class Twilio::QueuesApi

Defined in:

twilio/api/queues_api.cr

Constant Summary

CREATE_QUEUE_MAX_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_QUEUE_MIN_LENGTH_FOR_ACCOUNT_SID = 34
CREATE_QUEUE_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
DELETE_QUEUE_MAX_LENGTH_FOR_ACCOUNT_SID = 34
DELETE_QUEUE_MAX_LENGTH_FOR_SID = 34
DELETE_QUEUE_MIN_LENGTH_FOR_ACCOUNT_SID = 34
DELETE_QUEUE_MIN_LENGTH_FOR_SID = 34
DELETE_QUEUE_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
DELETE_QUEUE_PATTERN_FOR_SID = /^QU[0-9a-fA-F]{32}$/
FETCH_MEMBER_MAX_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_MEMBER_MAX_LENGTH_FOR_QUEUE_SID = 34
FETCH_MEMBER_MIN_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_MEMBER_MIN_LENGTH_FOR_QUEUE_SID = 34
FETCH_MEMBER_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
FETCH_MEMBER_PATTERN_FOR_QUEUE_SID = /^QU[0-9a-fA-F]{32}$/
FETCH_QUEUE_MAX_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_QUEUE_MAX_LENGTH_FOR_SID = 34
FETCH_QUEUE_MIN_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_QUEUE_MIN_LENGTH_FOR_SID = 34
FETCH_QUEUE_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
FETCH_QUEUE_PATTERN_FOR_SID = /^QU[0-9a-fA-F]{32}$/
LIST_MEMBER_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_MEMBER_MAX_LENGTH_FOR_ACCOUNT_SID = 34
LIST_MEMBER_MAX_LENGTH_FOR_QUEUE_SID = 34
LIST_MEMBER_MIN_FOR_PAGE_SIZE = Int32.new("1")
LIST_MEMBER_MIN_LENGTH_FOR_ACCOUNT_SID = 34
LIST_MEMBER_MIN_LENGTH_FOR_QUEUE_SID = 34
LIST_MEMBER_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
LIST_MEMBER_PATTERN_FOR_QUEUE_SID = /^QU[0-9a-fA-F]{32}$/
LIST_QUEUE_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_QUEUE_MAX_LENGTH_FOR_ACCOUNT_SID = 34
LIST_QUEUE_MIN_FOR_PAGE_SIZE = Int32.new("1")
LIST_QUEUE_MIN_LENGTH_FOR_ACCOUNT_SID = 34
LIST_QUEUE_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
UPDATE_MEMBER_MAX_LENGTH_FOR_ACCOUNT_SID = 34
UPDATE_MEMBER_MAX_LENGTH_FOR_QUEUE_SID = 34
UPDATE_MEMBER_MIN_LENGTH_FOR_ACCOUNT_SID = 34
UPDATE_MEMBER_MIN_LENGTH_FOR_QUEUE_SID = 34
UPDATE_MEMBER_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
UPDATE_MEMBER_PATTERN_FOR_QUEUE_SID = /^QU[0-9a-fA-F]{32}$/
UPDATE_QUEUE_MAX_LENGTH_FOR_ACCOUNT_SID = 34
UPDATE_QUEUE_MAX_LENGTH_FOR_SID = 34
UPDATE_QUEUE_MIN_LENGTH_FOR_ACCOUNT_SID = 34
UPDATE_QUEUE_MIN_LENGTH_FOR_SID = 34
UPDATE_QUEUE_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
UPDATE_QUEUE_PATTERN_FOR_SID = /^QU[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_create_queue(*, account_sid : String | Nil = @account_sid, friendly_name : String | Nil = nil, max_size : Int32 | Nil = nil) : Crest::Request #

@return Crest::Request


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

@return Crest::Request


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

@return Crest::Request


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

@return Crest::Request


[View source]
def build_api_request_for_list_member(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, page_size : Int32 | Nil = nil) : Crest::Request #

@return Crest::Request


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

@return Crest::Request


[View source]
def build_api_request_for_update_member(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, call_sid : String | Nil = nil, url : String | Nil = nil, method : Twilio::HttpMethod | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_update_queue(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, friendly_name : String | Nil = nil, max_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 create_queue(*, account_sid : String | Nil = @account_sid, friendly_name : String | Nil = nil, max_size : Int32 | Nil = nil) : Twilio::Queue #

Create a queue @required @param account_sid [String?] The SID of the Account that will create the resource. @required @param friendly_name [String?] A descriptive string that you created to describe this resource. It can be up to 64 characters long. @optional @param max_size [Int32?] The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. @return [Twilio::Queue]


[View source]
def create_queue(*, account_sid : String | Nil = @account_sid, friendly_name : String | Nil = nil, max_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

Create a queue @required @param account_sid [String?] The SID of the Account that will create the resource. @required @param friendly_name [String?] A descriptive string that you created to describe this resource. It can be up to 64 characters long. @optional @param max_size [Int32?] The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. @return nil


[View source]
def create_queue_with_http_info(*, account_sid : String | Nil = @account_sid, friendly_name : String | Nil = nil, max_size : Int32 | Nil = nil) : Tuple(Twilio::Queue, Int32, Hash(String, Array(String) | String)) #

Create a queue @required @param account_sid [String?] The SID of the Account that will create the resource. @required @param friendly_name [String?] A descriptive string that you created to describe this resource. It can be up to 64 characters long. @optional @param max_size [Int32?] The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. @return [Tuple(Twilio::Queue, Integer, Hash)] Twilio::Queue, response status code and response headers


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

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

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

Remove an empty queue @required @param account_sid [String?] The SID of the Account that created the Queue resource to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Queue resource to delete @return [Nil]


[View source]
def delete_queue(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Remove an empty queue @required @param account_sid [String?] The SID of the Account that created the Queue resource to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Queue resource to delete @return nil


[View source]
def delete_queue_with_http_info(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Tuple(Nil, Int32, Hash(String, Array(String) | String)) #

Remove an empty queue @required @param account_sid [String?] The SID of the Account that created the Queue resource to delete. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Queue resource to delete @return [Tuple(Nil, Integer, Hash)] Nil, response status code and response headers


[View source]
def fetch_member(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, call_sid : String | Nil = nil) : Twilio::QueueMember #

Fetch a specific member from the queue @required @param account_sid [String?] The SID of the Account that created the Member resource(s) to fetch. @required @param queue_sid [String?] The SID of the Queue in which to find the members to fetch. @required @param call_sid [String?] The Call SID of the resource(s) to fetch. @return [Twilio::QueueMember]


[View source]
def fetch_member(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, call_sid : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Fetch a specific member from the queue @required @param account_sid [String?] The SID of the Account that created the Member resource(s) to fetch. @required @param queue_sid [String?] The SID of the Queue in which to find the members to fetch. @required @param call_sid [String?] The Call SID of the resource(s) to fetch. @return nil


[View source]
def fetch_member_with_http_info(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, call_sid : String | Nil = nil) : Tuple(Twilio::QueueMember, Int32, Hash(String, Array(String) | String)) #

Fetch a specific member from the queue @required @param account_sid [String?] The SID of the Account that created the Member resource(s) to fetch. @required @param queue_sid [String?] The SID of the Queue in which to find the members to fetch. @required @param call_sid [String?] The Call SID of the resource(s) to fetch. @return [Tuple(Twilio::QueueMember, Integer, Hash)] Twilio::QueueMember, response status code and response headers


[View source]
def fetch_queue(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Twilio::Queue #

Fetch an instance of a queue identified by the QueueSid @required @param account_sid [String?] The SID of the Account that created the Queue resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Queue resource to fetch @return [Twilio::Queue]


[View source]
def fetch_queue(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Fetch an instance of a queue identified by the QueueSid @required @param account_sid [String?] The SID of the Account that created the Queue resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Queue resource to fetch @return nil


[View source]
def fetch_queue_with_http_info(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil) : Tuple(Twilio::Queue, Int32, Hash(String, Array(String) | String)) #

Fetch an instance of a queue identified by the QueueSid @required @param account_sid [String?] The SID of the Account that created the Queue resource to fetch. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Queue resource to fetch @return [Tuple(Twilio::Queue, Integer, Hash)] Twilio::Queue, response status code and response headers


[View source]
def list_member(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, page_size : Int32 | Nil = nil) : Twilio::ListMemberResponse #

Retrieve the members of the queue @required @param account_sid [String?] The SID of the Account that created the Member resource(s) to read. @required @param queue_sid [String?] The SID of the Queue in which to find the members @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::ListMemberResponse]


[View source]
def list_member(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

Retrieve the members of the queue @required @param account_sid [String?] The SID of the Account that created the Member resource(s) to read. @required @param queue_sid [String?] The SID of the Queue in which to find the members @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_member_with_http_info(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListMemberResponse, Int32, Hash(String, Array(String) | String)) #

Retrieve the members of the queue @required @param account_sid [String?] The SID of the Account that created the Member resource(s) to read. @required @param queue_sid [String?] The SID of the Queue in which to find the members @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::ListMemberResponse, Integer, Hash)] Twilio::ListMemberResponse, response status code and response headers


[View source]
def list_queue(*, account_sid : String | Nil = @account_sid, page_size : Int32 | Nil = nil) : Twilio::ListQueueResponse #

Retrieve a list of queues belonging to the account used to make the request @required @param account_sid [String?] The SID of the Account that created the Queue resources to read. @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::ListQueueResponse]


[View source]
def list_queue(*, account_sid : String | Nil = @account_sid, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

Retrieve a list of queues belonging to the account used to make the request @required @param account_sid [String?] The SID of the Account that created the Queue resources to read. @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_queue_with_http_info(*, account_sid : String | Nil = @account_sid, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListQueueResponse, Int32, Hash(String, Array(String) | String)) #

Retrieve a list of queues belonging to the account used to make the request @required @param account_sid [String?] The SID of the Account that created the Queue resources to read. @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::ListQueueResponse, Integer, Hash)] Twilio::ListQueueResponse, response status code and response headers


[View source]
def update_member(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, call_sid : String | Nil = nil, url : String | Nil = nil, method : Twilio::HttpMethod | Nil = nil) : Twilio::QueueMember #

Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL @required @param account_sid [String?] The SID of the Account that created the Member resource(s) to update. @required @param queue_sid [String?] The SID of the Queue in which to find the members to update. @required @param call_sid [String?] The Call SID of the resource(s) to update. @required @param url [String?] The absolute URL of the Queue resource. @optional @param method [Twilio::HttpMethod?] @return [Twilio::QueueMember]


[View source]
def update_member(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, call_sid : String | Nil = nil, url : String | Nil = nil, method : Twilio::HttpMethod | Nil = nil, &block : Crest::Response -> ) : Nil #

Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL @required @param account_sid [String?] The SID of the Account that created the Member resource(s) to update. @required @param queue_sid [String?] The SID of the Queue in which to find the members to update. @required @param call_sid [String?] The Call SID of the resource(s) to update. @required @param url [String?] The absolute URL of the Queue resource. @optional @param method [Twilio::HttpMethod?] @return nil


[View source]
def update_member_with_http_info(*, account_sid : String | Nil = @account_sid, queue_sid : String | Nil = nil, call_sid : String | Nil = nil, url : String | Nil = nil, method : Twilio::HttpMethod | Nil = nil) : Tuple(Twilio::QueueMember, Int32, Hash(String, Array(String) | String)) #

Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL @required @param account_sid [String?] The SID of the Account that created the Member resource(s) to update. @required @param queue_sid [String?] The SID of the Queue in which to find the members to update. @required @param call_sid [String?] The Call SID of the resource(s) to update. @required @param url [String?] The absolute URL of the Queue resource. @optional @param method [Twilio::HttpMethod?] @return [Tuple(Twilio::QueueMember, Integer, Hash)] Twilio::QueueMember, response status code and response headers


[View source]
def update_queue(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, friendly_name : String | Nil = nil, max_size : Int32 | Nil = nil) : Twilio::Queue #

Update the queue with the new parameters @required @param account_sid [String?] The SID of the Account that created the Queue resource to update. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Queue resource to update @optional @param friendly_name [String?] A descriptive string that you created to describe this resource. It can be up to 64 characters long. @optional @param max_size [Int32?] The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. @return [Twilio::Queue]


[View source]
def update_queue(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, friendly_name : String | Nil = nil, max_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

Update the queue with the new parameters @required @param account_sid [String?] The SID of the Account that created the Queue resource to update. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Queue resource to update @optional @param friendly_name [String?] A descriptive string that you created to describe this resource. It can be up to 64 characters long. @optional @param max_size [Int32?] The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. @return nil


[View source]
def update_queue_with_http_info(*, account_sid : String | Nil = @account_sid, sid : String | Nil = nil, friendly_name : String | Nil = nil, max_size : Int32 | Nil = nil) : Tuple(Twilio::Queue, Int32, Hash(String, Array(String) | String)) #

Update the queue with the new parameters @required @param account_sid [String?] The SID of the Account that created the Queue resource to update. @required @param sid [String?] The Twilio-provided string that uniquely identifies the Queue resource to update @optional @param friendly_name [String?] A descriptive string that you created to describe this resource. It can be up to 64 characters long. @optional @param max_size [Int32?] The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. @return [Tuple(Twilio::Queue, Integer, Hash)] Twilio::Queue, response status code and response headers


[View source]