Sha256: da254c452f2898e030552bec6cfa416754da17e7deb7f5d79f649cadefd0866b
Contents?: true
Size: 495 Bytes
Versions: 1
Compression:
Stored size: 495 Bytes
Contents
# frozen_string_literal: true module WellsFargo module Endpoints class Token < Base def generate(scope) client.execute( :post, 'token', headers: headers, body: { grant_type: 'client_credentials', scope: scope } ) end private def headers { 'Content-Type' => 'application/x-www-form-urlencoded', 'Content-Length' => 0 } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wells_fargo-api-0.1.0 | lib/wells_fargo/endpoints/token.rb |