yahoo-api

Yahoo API with Ruby on Rails and OAUTH2

本小妞迷上赌 提交于 2019-12-02 02:42:30
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

Using the Yahoo Weather API with JSON and the script tag

拜拜、爱过 提交于 2019-12-02 01:18:45
问题 I'm trying to get the Yahoo Weather with JavaScript. I originally made a proxy, but found that clumsy. So can get the JSON response from http://weather.yahooapis.com/forecastjson?w=9807, and I know that the script tag can avoid the same-domain restrictions, but I'm getting a syntax error. Yahoo's JSON response isn't padded; I've got the callback working but the browser isn't interpreting the JSON properly. I've seen many examples like How to read yahoo weather JSON data with Jquery ajax but

Using the Yahoo Weather API with JSON and the script tag

£可爱£侵袭症+ 提交于 2019-12-01 21:48:57
I'm trying to get the Yahoo Weather with JavaScript. I originally made a proxy, but found that clumsy. So can get the JSON response from http://weather.yahooapis.com/forecastjson?w=9807 , and I know that the script tag can avoid the same-domain restrictions, but I'm getting a syntax error. Yahoo's JSON response isn't padded; I've got the callback working but the browser isn't interpreting the JSON properly. I've seen many examples like How to read yahoo weather JSON data with Jquery ajax but it's so weird because all those give me the cross-domain error. Can anyone help me with this? Cross

Using OAuth in Yahoo! API Requests (Python)

喜夏-厌秋 提交于 2019-12-01 14:25:31
I'm trying to integrate an application with a Yahoo! api that requires oauth authentication to access protected data. I'm using python-oauth2 and following along with the steps listed in Yahoo's Oauth Authorization Flow document. I've been able to complete all of the steps to negotiate an access token with Yahoo, but do not seem to be able to use the token to authenticate . Here is my code: import oauth2 as oauth def list_users(token): # token is the access token i save in the DB oauth_token = oauth.Token(token.token, token.secret) consumer = oauth.Consumer(key=settings.OATH_CONSUMER_KEY,

How do I get started with oauth for YQL for historical stock data?

天大地大妈咪最大 提交于 2019-12-01 11:06:00
问题 in my search for a market data feed, I've been led to YQL for yahoo finance. It looks great, and very simple for the public use/ queries, but the daily limit for the public version is too small for my needs.. I got my yahoo ID to get started with oauth, but I can't find any good examples pertaining to what I'm trying to do... I'd like to "sign in" with my desktop app in C#, and proceed to download data of interest. How do I use the oath dimension? My background as a point of reference is

read.csv(“http://ichart.finance.yahoo.com/table.csv?s=SPY”) Not Working

匆匆过客 提交于 2019-12-01 10:58:26
I have been using the following command for a long time without problem: spy <- read.csv("http://ichart.finance.yahoo.com/table.csv?s=SPY") But in the past few days it started to throw the following error: Warning messages: 1: In file(file, "rt") : "internal" method cannot handle https redirection to: ' https://ichart.finance.yahoo.com/table.csv?s=SPY ' 2: In file(file, "rt") : "internal" method failed, so trying "libcurl" I've updated my RStudio, R and all packages to the most up-to-date versions as of today. Could someone help me resolve this issue? Thanks in advance! The fix is right there

https://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.xchange where pair in (“ARSARS”)&env=store://datatables.org/alltableswithkeys

百般思念 提交于 2019-12-01 07:01:18
I have been using the following URL for the past 3 years without issue. However, it has stopped returning results. URL: https://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.xchange where pair in ("ARSARS")&env=store://datatables.org/alltableswithkeys Now returns the following: <?xml version="1.0" encoding="UTF-8"?> <query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2017-11-02T09:33:25Z" yahoo:lang="en-AU"> <results/> </query><!-- total: 9 --> Notice how there are no results, it simply has the tag "results". I have tried on this many

yahoo finance stock quote api

空扰寡人 提交于 2019-12-01 04:07:05
Is there any way to get historical stock prices from the yahoo api in the json format? I'd like to use REST because it's more lightweight. To follow up on user586050's answer with a specific example... You can use the YQL yahoo.finance.historical data table for this request, and have the results come back in JSON format. For example try this query (the link will take you to the YQL console where you can play with it): select * from yahoo.finance.historicaldata where symbol = "YHOO" and startDate = "2009-09-11" and endDate = "2009-09-15" Sample results in JSON format: { "query": { "count": 3,

yahoo finance stock quote api

谁都会走 提交于 2019-12-01 01:54:39
问题 Is there any way to get historical stock prices from the yahoo api in the json format? I'd like to use REST because it's more lightweight. 回答1: To follow up on user586050's answer with a specific example... You can use the YQL yahoo.finance.historical data table for this request, and have the results come back in JSON format. For example try this query (the link will take you to the YQL console where you can play with it): select * from yahoo.finance.historicaldata where symbol = "YHOO" and

Does Yahoo and MS support Oauth 2.0? and few questions about oAuth 2.0

流过昼夜 提交于 2019-11-30 20:27:35
i have several questions... Does yahoo and microsoft api support oAuth 2.0? If yes then what are the main security measures those should be taken care of while shifting from oAuth 1.0 to oAuth 2.0. Google API supports oAuth 2.0. But they have still marked it as an experimental. Is it good to start shifting even though it is experimental? I see while registering an application on google (for oAuth 2.0), they ask for callback url. If a single application uses a condition dependent callback url such as - if($myVar == NULL) $callbackUrl = 'http://www.mydomain.com/test.php?m=f&params=null' else