Posts

Showing posts with the label Google Api

Alternative To Google Finance Api

Answer : Updating answer a bit 1. Try Twelve Data API For beginners try to run the following query with a JSON response: https://api.twelvedata.com/time_series?symbol=AAPL&interval=1min&apikey=demo&source=docs NO more real time Alpha Vantage API For beginners you can try to get a JSON output from query such as https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&apikey=demo DON'T Try Yahoo Finance API (it is DEPRECATED or UNAVAILABLE NOW). Here is a link to previous Yahoo Finance API discussion on StackOverflow. Here's an alternative link to Yahoo Finance API posted on Google Code. For beginners, you can generate a CSV with a simple API call: http://finance.yahoo.com/d/quotes.csv?s=AAPL+GOOG+MSFT&f=sb2b3jk (This will generate and save a CSV for AAPL, GOOG, and MSFT) Note that you must append the format to the query string ( f=.. ). For an overview of all of the formats see this page. For more examples, visit this p...

Cannot Resolve Symbol Google API Client In Android Studio

Answer : For the benefit of searchers: If you are following the android tutorial that relates to this, you can add the dependency via the UI. In Android Studio, go to File > Project Structure. Go to the dependencies tab. On the right hand side add a 'Library Dependency'. Type "com.google.android.gms:play-services" into the searchbox and pick the appropriate dependency. Then follow @Dmac's answer Even though not officially listed in the tutorial, you must use the following imports: import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks; import com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener; import com.google.android.gms.location.LocationListener; import com.google.android.gms.location.LocationRequest; import com.google.android.gms.location.LocationServices; I had to do the following ...