Class: WellsFargo::Endpoints::Token
- Defined in:
- lib/wells_fargo/endpoints/token.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from WellsFargo::Endpoints::Base
Instance Method Details
#generate(scope) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# 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 |