module FlowAccount::Auth
Public Instance Methods
get_access_token(options={})
click to toggle source
# File lib/flow_account/auth.rb, line 3 def get_access_token(options={}) options[:grant_type] ||= "client_credentials" options[:scope] ||= scope if !scope.nil? && !scope.empty? params = access_token_params.merge(options) post("token", params, raw=false, no_response_wrapper=true) end
Private Instance Methods
access_token_params()
click to toggle source
# File lib/flow_account/auth.rb, line 19 def access_token_params { client_id: client_id, client_secret: client_secret } end