Twilio::Configuration
Constructors
Create a new Configuration with block.
config = Petstore::Configuration.new do |config|
config.username = "xxx"
config.password = "xxx"
end
Class methods
Instance methods
Defines the access token (Bearer) used with OAuth2.
Defines API keys used with API Key authentications.
@return [Hash] "key" => parameter name, value: parameter value (API key)
@example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string) config.api_key["api_key"] = "xxx"
Defines API keys used with API Key authentications.
@return [Hash] "key" => parameter name, value: parameter value (API key)
@example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string) config.api_key["api_key"] = "xxx"
Defines API key prefixes used with API Key authentications.
@return [Hash] "key" => parameter name, value: API key prefix
@example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers) config.api_key_prefix["api_key"] = "Token"
Defines API key prefixes used with API Key authentications.
@return [Hash] "key" => parameter name, value: API key prefix
@example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers) config.api_key_prefix["api_key"] = "Token"
Gets API key (with prefix if set). @param [String] param_name the parameter name of API key auth
Returns base URL for specified operation based on server settings
Set this to false to skip client side validation in the operation. Default to true. @return [true, false]
Set this to false to skip client side validation in the operation. Default to true. @return [true, false]
Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
details will be logged with logger.debug (see the logger attribute).
Default to false.
@return [true, false]
Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
details will be logged with logger.debug (see the logger attribute).
Default to false.
@return [true, false]
Defines the password used with HTTP basic authentication.
@return [String]
Define server operation configuration index
Default server operation variables
Returns URL based on server settings
@param index array index of the server settings @param variables hash of variable and the corresponding value
Defines the temporary folder to store downloaded files
(for API endpoints that have file response).
Default to use Tempfile.
@return [String]
Defines the temporary folder to store downloaded files
(for API endpoints that have file response).
Default to use Tempfile.
@return [String]