Menu
  • HOME
  • TAGS

How can I remove this JSON wrapper in swift?

ios,json,swift,yahoo-api,yahoo-finance

I don't know why you're using downloadTaskWithURL and then using NSData's dataWithContentsOfURL to get the data. It's simpler to use dataTaskWithURL. The following code worked for me to download the data, convert it to a string, trim that string to remove unwanted text, convert that string back to an NSData...

Use Yahoo Contacts API to import all contacts using there API, using OAuth2 token

oauth-2.0,yahoo,contact,yahoo-api

Use the access token in there (the value of the access_token element) in a call like this: curl -H "Authorization: Bearer <access_token>" https://social.yahooapis.com/v1/user/me/contacts?format=json assuming that the client application was authorized in the developer console to access the contacts API. You'll really need to use this API URL because the YDL...

Retrieve access token for Yahoo API using OAuth 2.0 and Python requests

python,api,oauth,python-requests,yahoo-api

Change your body variable to a dict, i.e., body = { 'grant_type': 'authorization_code', 'redirect_uri': 'oob', 'code': '************', } No other changes are needed. Hope it helps....

OAuth2 INTRIDEA gem and HTTP basic authentication header

ruby,oauth-2.0,yahoo-api,ringcentral

After looking at the docs for the auth_code strategy and the code for oauth2/strategy/password.rb, oauth2/strategy/base.rb and oauth2/client.rb, it appears the OAuth2 gem will add the client_id and client_secret form parameters to the body but not the header. This is permitted but NOT RECOMMENDED by IETF RFC 6749. To add the...

YUI 2.8.2 datatable sorts old value after a client side button click action is done

javascript,yui,yahoo,yahoo-api,yui-datatable

The reason why is that when you sort the table, it re-renders itself. When someone clicks the button, it doesn't change any state (ie anything about the underlying data), you are just changing the innerHTML of the cell. When the re-render happens, the existing content is overwritten by the underlying...

Cannot get OAuth2.0 accessToken from yahooAPI using java

java,servlets,oauth-2.0,yahoo-api

You need to POST the parameters as form-encoded parameters in a HTTP POST request to the token endpoint (oauth2/get_token) instead of providing them as query parameters in a redirect to the token endpoint. You can use code from Sending HTTP POST Request In Java Also, be aware that: you need...

Remove weather of default location in zWeatherFeed jquery plugin ?

jquery,api,yahoo-api,yahoo-weather-api

You must edit the yahoo city code <script type="text/javascript"> $(document).ready(function () { $('#test').weatherfeed(['XXXX0977'], { forecast: true }); }); </script> the XXXX0977 is the city code you need to change....

Yahoo - OAuth2 - what is Error 95037?

oauth-2.0,yahoo-api

Your state is the problem. I can reproduce the problem by including your URL-encoded state in the authorization request for my Yahoo client. The problem is the length of the state or the total URL. You may revert to using a cookie for maintaining that state and send only the...

How to get S&P 500 current price by using Yahoo API

yahoo-api

I use their CSV interface. http://code.google.com/p/yahoo-finance-managed/wiki/csvQuotesDownload The symbol is ^GSPC Using wget as a demo: wget -O - 'http://download.finance.yahoo.com/d/quotes.csv?s=^gspc&f=sl1p2' ...

YQL | why I'm getting a syntax error?

url,yahoo,yql,yahoo-api

Here's your url: http://query.yahooapis.com/v1/public/yql? q=select%20*%20from%20html%20where%20url%3D%27https%3A%2F%2F www.google.com/search?q=Google+Guice&ie=utf-8%27%0A&format=json The URL query parts are separated into the following (separated by &): +--------+---------------------------------------------------+ | q | select%20*%20from%20html%20where%20url%3D%27https | | | %3A%2F%2Fwww.google.com/search?q=Google+Guice | +--------+---------------------------------------------------+ | ie | utf-8%27%0A |...

error fetching Oauth2 token from yahoo: OAuth2::Error invalid_request: {“error”:“invalid_request”}

ruby,oauth-2.0,sinatra,yahoo,yahoo-api

Assuming you use the intridea OAuth 2.0 client (https://github.com/intridea/oauth2), you may be bumping in to a bug: https://github.com/intridea/oauth2/pull/192 meaning that Yahoo refuses to permit client credentials in the request body. The pull request has not been merged yet so you'd need to apply that to your own code (or find...

Multiple data financial APIs

ruby-on-rails,ruby,yahoo-api

Yahoo historical data does not support downloading more than one symbol at a time. Each URL is unique per symbol. With yahoo limitations, I would not recommend downloading using more than a single thread....

Good suggestion on programming language for finance? [closed]

shell,google-api,yahoo-api,quantitative-finance

I would use Python. It works very well cross platform and I have seen some great financial data apps made with it. Also if you are using Ubuntu already Python will help you do more with it. That is the reason I decided to learn Python. I use Python 2.7...

Use Oauth to call yahoo api in android

android,oauth,digital-signature,yahoo-api

I got an answer Full Code : public class YahooScreen extends Activity { private static final String REQUEST_TOKEN_ENDPOINT_URL ="https://api.login.yahoo.com/oauth/v2/get_request_token"; private static final String AUTHORIZE_WEBSITE_URL ="https://api.login.yahoo.com/oauth/v2/request_auth"; private static final String ACCESS_TOKEN_ENDPOINT_URL ="https://api.login.yahoo.com/oauth/v2/get_token"; static final String YAHOO_CALLBACK_URL = "YOUR_YAHOO_CALLBACK_URL"; static final String YAHOO_CONSUMER_KEY = "YOUR_YAHOO_CONSUMER_KEY"; static final...

Yahoo YQL API - How to select a JSON field whose name is a reserved YQL keywords?

json,select,field,yql,yahoo-api

Just want to ask is that possible to select a field names "values"? No. (Sorry!)...

YQL Console - No definition found for Table yahoo.finance.quotes

xml,yahoo,yahoo-api,yahoo-finance

What you need to do, it to import community table. You can do something like this env 'store://datatables.org/alltableswithkeys'; select * from yahoo.finance.quotes where symbol in ("YHOO","AAPL","GOOG","MSFT") In the yql console, those tables only appear when you check Show Community Table Hope it will help ...