Module: PactasItero::Api::OAuth

Included in:
PactasItero::Api
Defined in:
lib/pactas_itero/api/oauth.rb

Instance Method Summary collapse

Instance Method Details

#token(options = {}) ⇒ Object



6
7
8
9
10
# File 'lib/pactas_itero/api/oauth.rb', line 6

def token(options = {})
  options[:bearer_token_request] = true
  options[:grant_type] ||= "client_credentials"
  post "/oauth/token", options
end