class Bandwidth::Error
The User Errors
resource lets you see information about errors that happened in your API calls and during applications callbacks.
Public Class Methods
get(client, id)
click to toggle source
Gets information about one user error @param client [Client] optional client instance to make requests @param id [String] if of error @return [Hash] error information @example
err = Error.get(client, "id")
# File lib/bandwidth/error.rb, line 13 def self.get(client, id) client.make_request(:get, client.concat_user_path("#{ERROR_PATH}/#{id}"))[0] end
list(client, query = nil)
click to toggle source
Gets all the user errors for a user @param client [Client] optional client instance to make requests @param query [Hash] query options @return [Array] list of errors @example
errors = Error.list(client)
# File lib/bandwidth/error.rb, line 24 def self.list(client, query = nil) client.make_request(:get, client.concat_user_path(ERROR_PATH), query)[0] end