lib/velopayments/api/login_api.rb
# Authentication endpoint
# Use this endpoint to obtain an access token for calling Velo Payments APIs. Use HTTP Basic Auth. String value of Basic and a Base64 endcoded string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret  (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. Basic 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 
# @param [Hash] opts the optional parameters
# @option opts [String] :grant_type OAuth grant type. Should use &#39;client_credentials&#39;
# @return [Array<(AuthResponse, Integer, Hash)>] AuthResponse data, response status code and response headers
Authentication endpoint
Use this endpoint to obtain an access token for calling Velo Payments APIs. Use HTTP Basic Auth. String value of Basic and a Base64 endcoded string comprising the API key  and API secret   with a colon between them.
Authentication endpoint Use this endpoint to obtain an access token for calling Velo Payments APIs . Use HTTP Basic Auth . String value of Basic and a Base64 endcoded string comprising the API key and API secret with a colon between them .
def velo_auth_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: LoginApi.velo_auth ...'
      end
      local_var_path = '/v1/authenticate'
      query_params = opts[:query_params] || {}
      query_params[:'grant_type'] = opts[:'grant_type'] if !opts[:'grant_type'].nil?
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type] || 'AuthResponse'
      auth_names = opts[:debug_auth_names] || ['basicAuth']
      new_options = opts.merge(
        :operation => :"LoginApi.velo_auth",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: LoginApi#velo_auth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def velo_auth_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: LoginApi.velo_auth ...' end local_var_path = '/v1/authenticate' query_params = opts [ :query_params ] || { } query_params [ :' grant_type ' ] = opts [ :' grant_type ' ] if ! opts [ :' grant_type ' ] . nil? header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] || 'AuthResponse' auth_names = opts [ :debug_auth_names ] || [ 'basicAuth' ] new_options = opts . merge ( :operation => :" LoginApi.velo_auth " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: LoginApi#velo_auth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Authentication endpoint
Use this endpoint to obtain an access token for calling Velo Payments APIs.
Authentication endpoint Use this endpoint to obtain an access token for calling Velo Payments APIs .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
AuthResponse data, response status code and response headers
AuthResponse data response status code and response headers
Array<(AuthResponse, Integer, Hash)>
opts
:grant_type OAuth grant type. Should use 'client_credentials'.
: grant_type OAuth grant type . Should use ' client_credentials ' .
<not_specific>
opts the optional parameters
opts the optional parameters