Skip to content

Commit

Permalink
Get token call: URL slightly changed
Browse files Browse the repository at this point in the history
'/api/oauth/token' => '/v2/oauth/token'
  • Loading branch information
Sergiusz Woźnicki committed Jun 30, 2014
1 parent 389b6fa commit 1027980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mangopay/authorization_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def storage= (storage)
def get_token
token = storage.get
if token.nil? || token['timestamp'].nil? || token['timestamp'] <= Time.now
token = MangoPay.request(:post, '/api/oauth/token', {}, {}, {}, Proc.new do |req|
token = MangoPay.request(:post, '/v2/oauth/token', {}, {}, {}, Proc.new do |req|
cfg = MangoPay.configuration
req.basic_auth cfg.client_id, cfg.client_passphrase
req.body = 'grant_type=client_credentials'
Expand Down

0 comments on commit 1027980

Please sign in to comment.