OAuth token not retrieved with Uber API -
i unable retrieve token in oauth process using uber api. here code:
require 'oauth2' <% client = oauth2::client.new('<client id>', '<client secret>', :site => 'http://login.uber.com/oauth/authorize?response_type=code') %> <% token = client.auth_code.get_token('authorization_code_value', :redirect_uri => 'http://localhost:4567/callback', :headers => {'authorization' => "token <token>"}) %> getting:
oauth2::error - invalid_client: {"error": "invalid_client"}: /library/ruby/gems/2.0.0/gems/oauth2-1.0.0/lib/oauth2/client.rb:113:in `request'
any idea ? tried http/https , , code/token on response type.
thanks, matt
apparently had wrong client id, check if matches 1 on developer dashboard.
Comments
Post a Comment