class WellsFargo::Endpoints::Token
Public Instance Methods
generate(scope)
click to toggle source
# File lib/wells_fargo/endpoints/token.rb, line 6 def generate(scope) client.execute( :post, 'token', headers: headers, body: { grant_type: 'client_credentials', scope: scope } ) end
Private Instance Methods
headers()
click to toggle source
# File lib/wells_fargo/endpoints/token.rb, line 19 def headers { 'Content-Type' => 'application/x-www-form-urlencoded', 'Content-Length' => 0 } end