lib/sk_sdk/oauth.rb
def token_params(code)
      { client_id: @id,
        grant_type: 'authorization_code',
        redirect_uri: CGI::escape(@redirect_url),
        code: code }
    end
# Params used in the POST request to /token e.g see httparty example on top.
# Using the client_secret in the params is DEPRECATED. Instead use HTTP Basic
# Auth header with client_id:client_secret like provided by #basic_params
# @returns[Hash] params used to get the real access-token
# @param [String] code to exchange for the access token
Params used in the POST request to /token e.g see httparty example on top.
Using the client_secret in the params is DEPRECATED. Instead use HTTP Basic
Auth header with client_id:client_secret like provided by #basic_params
Params used in the POST request to / token e . g see httparty example on top . Using the client_secret in the params is DEPRECATED . Instead use HTTP Basic Auth header with client_id : client_secret like provided by #basic_params
def token_params(code)
      { client_id: @id,
        grant_type: 'authorization_code',
        redirect_uri: CGI::escape(@redirect_url),
        code: code }
    end
def token_params ( code ) { client_id : @id , grant_type : 'authorization_code' , redirect_uri : CGI :: escape ( @redirect_url ) , code : code } end
Params used in the POST request to /token e.g see httparty example on top.
Params used in the POST request to / token e . g see httparty example on top .
code
code to exchange for the access token
code to exchange for the access token
returns[Hash]
params used to get the real access-token
params used to get the real access - token