class Notifo::AuthorizationApi
Attributes
api_client[RW]
Public Class Methods
new(api_client = ApiClient.default)
click to toggle source
# File lib/notifo/api/authorization_api.rb, line 16 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
authorization_authorize(opts = {})
click to toggle source
@param [Hash] opts the optional parameters @return [nil]
# File lib/notifo/api/authorization_api.rb, line 21 def authorization_authorize(opts = {}) authorization_authorize_with_http_info(opts) nil end
authorization_authorize_with_http_info(opts = {})
click to toggle source
@param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/notifo/api/authorization_api.rb, line 28 def authorization_authorize_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthorizationApi.authorization_authorize ...' end # resource path local_var_path = '/connect/authorize' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthorizationApi#authorization_authorize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
authorization_exchange(opts = {})
click to toggle source
@param [Hash] opts the optional parameters @return [nil]
# File lib/notifo/api/authorization_api.rb, line 67 def authorization_exchange(opts = {}) authorization_exchange_with_http_info(opts) nil end
authorization_exchange_with_http_info(opts = {})
click to toggle source
@param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/notifo/api/authorization_api.rb, line 74 def authorization_exchange_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthorizationApi.authorization_exchange ...' end # resource path local_var_path = '/connect/token' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthorizationApi#authorization_exchange\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
authorization_logout(opts = {})
click to toggle source
@param [Hash] opts the optional parameters @return [nil]
# File lib/notifo/api/authorization_api.rb, line 113 def authorization_logout(opts = {}) authorization_logout_with_http_info(opts) nil end
authorization_logout_with_http_info(opts = {})
click to toggle source
@param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/notifo/api/authorization_api.rb, line 120 def authorization_logout_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthorizationApi.authorization_logout ...' end # resource path local_var_path = '/connect/logout' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthorizationApi#authorization_logout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end