Yahoo API with Ruby on Rails and OAUTH2
I have an RoR site that gets data from stock exchanges and I am using Yahoo's finance table via the Yahoo API. I need authorization to gain full access to YQL, which requires that I use Oauth2. I need help getting OAuth access to Yahoo. This is what I have tried: client = OAuth2::Client.new(oauth_consumer_key,oauth_consumer_secret, { access_token_path: '/oauth/v2/get_token', authorize_path: '/oauth/v2/request_auth', authorize_url: 'https://api.login.yahoo.com/oauth/v2/request_auth', request_token_path: '/oauth/v2/get_request_token', site: 'https://api.login.yahoo.com' }) puts client.auth_code