Parse.com - how to get most searched query? - android

I can't find a tool in Parse.com analytics that can show me most popular query.
I have added parse analytics to my Android app so I can see data for each search, but can't get the most popular one. I see that Parse Analytics/Explorer could hide something that I 'm looking for but can't find it.
Anyone knows how to get it?

https://parse.com/apps/app-name/slow_queries .. Check the slow queries part under analytics. Not sure if this is what you are looking for. but it shows all the queries and the number of times they were called.

Related

Android - find image link API

Hey !
I have an Android app where the user can search on a specific subject, let's take the word "Cats" for example. When the user submits the search I want to find an image similar or on the subjects the searched for. A search engine for images more or less. I want something "easy" to deal with, so I thought about integrating the Google Search API into my app. Let the user search Google, and take the first image that comes up.
However, I haven't found any example and I just need a push in the right direction. If you could give me an example API for my needs, that'd be great.
Apparently the Google Search API never was fully deprecated it's still up and running. It provides JSON data and is easily parsed with Android.
If anyone else needs an image API here's a test search: https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=searchquery&rsz=8&start=1&imgsz=small|medium
And the JSON reference: https://developers.google.com/image-search/v1/jsondevguide

Google Fusion Tables- access data and insert data from android

I am trying to access one of my google fusion tables from my android application. I have a few doubts I would like to clearify (few problems as well):
I tried to query one of the public tables (for test) using this direct URL in my browser: https://www.google.com/fusiontables/api/query?sql=SELECT%20*%20FROM%201W-rjFNnEYYsfJiN2vR8m09XwGQqMQkBHbmRwpQ and faced no problem. Now I want to select all states that have a charcter u in it. (CHANGE) At this first job was to select names of states first. I tried this: https://www.google.com/fusiontables/api/query?sql=SELECT%20State/UT%20Code,India/State/Union%20Territory%20#%20FROM%201W-rjFNnEYYsfJiN2vR8m09XwGQqMQkBHbmRwpQ - I am stuck at this point. Can some body please help. This is a public data and can be viewed here. For this I have already looked at developer docs for querying fusion tables and developer guide for querying fusion tables
I am lost on how to access this data at my android side and insert values in it. Do I have to give public permission to my table? I have looked at developer docs for fusion tables. Do I have to make a REST Client for it and do it that way?
Also, inserting data from my app is problem. I have not tried anything yet in this regard, but have searched a lot and have not found any thing useful. Any link in this regard would do.
What happens after number of request increases the limit? Also, if I create an application using an API key, does the number of hits per user of the application or total number of hits by the application count? Also, what are the charges if one wishes to to increase the limits?
Any link or code in this regard is highly appreciated.
Thanks
If you want a simple way to test the API I recommend to use the Google API Explorer for Fusion Tables.
If you have column names with spaces in them, you have to use quotes.
-> See this example in the API explorer.
SELECT 'State/UT Code', 'India/State/Union Territory #' FROM 1W-rjFNnEYYsfJiN2vR8m09XwGQqMQkBHbmRwpQ
It's probably the easiest to use the already existing Java client for the Google API (there are also other libraries available). Check their Java example for Fusion Tables to get the idea how to use it.
You have to use OAuth to authenticate yourself (see the OAUth guide for "Installed Applications"). The above mentioned Java library also has OAuth support.
I already answered this one on another question.

take the results of a google search

I am working on an Android application and I want make a search in google and save the results in a data structure in order to use them. Can someone indicate me an instrument that I can use? Thank you
You can just contact the google api for searching and parse the json or xml results, extracting exactly what information you want.google-search

Querying the time using Google Search Results

This one is puzzling me...
For my Android application I want to be able to return the current time in any location the user requests (right down to city level). The request itself comes from a voice command, so I cannot use alternative methods.
The most obvious way (so I thought) was to query Google, but I need your brains to help me solve how to extract the data I want please!
In Google, query:
"What's the time in China"
You should see a 'widget' at the top displaying the answer nicely. View the page source and search on 'China' and it's there - I thought great, this is going to be easy!
But...
"What's the time in London"
Although the display in Google appears the same, there is no result for 'London' when searching the source HTML...?
Using Google Chrome, I inspect the element of the 'widget' and can then view the contents I wish to extract in all cases.
So, my questions is firstly, am I missing something obvious (Google don't want us to be able to do this for example)? Or is there a way to 'force' the result to be in the HTML by structuring the query perhaps?
Secondly, is there a way to access the specific 'element container' and return the results to my Android Application?
I thank you in advance...
You should really use an API instead of parsing html.
I guess there are many many API which will give you the time in a given city.
http://www.worldweatheronline.com/time-zone-api.aspx for example (havnt tried it myself)
If you still want to extract data from the google result (which is html), check for html parsers like in this post : Parse HTML in Android

Pagination - Twitter's people you follow

im developing an Android application for twitter that will sync data coming from the people you follow.
The problem is that:
http://api.twitter.com/1/statuses/friends.json
provides me the last 100 persons ive followed and i wanted to display only 20 for each 'page'.
I believe that the 'cursor' parameter doesnt do what i need, so i'm trying to figure out a way to store it.
Can you guys give me enlightenment?
Thanks in advance
You should be able to add a parameter count=, and combine this with the cursor parameter. Try
http://api.twitter.com/1/statuses/friends.json?count=20&cursor=-1

Categories

Resources