Google feed api integration with iPhone/Objective C - iphone

I am building an RSS Reader. Some of the existing ones out there (for example, Pulse News for iPhone/iPad) have a search box where you can search for some term (example - "sports") and it will return a list of feeds that match your search criteria. So in this example, you type in "sports", and it searches and then comes back with ESPN.com's news feed, Yahoo! Sports' news feed, etc. etc.
After initial research, I found out that Google feed API does the same.
https://code.google.com/intl/fr/apis/ajaxfeeds/documentation/reference.html#findFeeds
However, I cant figure out how to use the google feed api. It returns the xml that i need to parse but the part I am confused is how to call the API and where to catch the xml response. Can some one post a tutorial or some help on how to integrate it.

Found a suitable solution with "Google Feed API" itself. They also have a JSON API(wow!!) which returns the JSON file for any query fired..
Here is the link:
https://ajax.googleapis.com/ajax/services/feed/find?v=1.0&q=
e.g:
https://ajax.googleapis.com/ajax/services/feed/find?v=1.0&q=News

Related

Single Line Address for MapQuest

I'm trying to provide other map options besides just Google. Unfortunately a single HTTP query (e.g. location=123+main+street) only seems to be readily supported by Google.
I had no luck trying to find anything about embedding in the documentation and decided to email them directly:
The MapQuest business products
(https://developer.mapquest.com/documentation/) support both single
line input "location=1555+Blake+St+Denver+CO+80202+US" and the
advanced, 5-box method
("street=1555+Blake+St&city=Denver&state=CO&postalCode=80202&country=US").
Our API and SDK also lets you add the mapping/geocoding/routing
functions to your site without embedding links to the consumer site at
www.MapQuest.com.
Okay, so location=123+main+street should be supported in theory. However no example was provided. So using the iframe URL from the more client-oriented approach I tried the following without luck:
https://www.mapquest.com/embed/?location=1555+Blake+St+Denver+CO+80202+US
That just shows the map of the US as a whole.
How do I get the single HTTP query location to work for MapQuest embedding?
Correct: location=1555+Blake+St+Denver+CO+80202+US (single HTTP query).
Incorrect: street=1555+Blake+St&city=Denver (multiple HTTP queries).
It looks like a mix of MapQuest APIs and MapQuest.com. Check out the Link to MapQuest documentation. I think the Map a Location > Fielded Location is what you're after.
On this page: https://developer.mapquest.com/documentation/tools/link-to-mapquest/
Scroll down to Link to MapQuest Wizard.
Click on Map a Location.
Click on Single Line Location.
Click on the Run Sample with Embed View Specifier button.
Copy the URL from the new tab.
An example of the working MapQuest single HTTP query embedded page:
https://www.mapquest.com/embed/search/results?query=1555%20Blake%20St%20Denver%20CO%2080202&centerOnResults=1

How to get EXTRA (complimentary) results from bing-search API

When we generally search for a term in www.bing.com (e.g. newyork), we get some extra information along with search results on the right most side of the page. Like for 'newyork' you would see some content from wikipedia, map location, it's twitter page etc.
Is there a way to get this information from current BING SEARCH API?
Some of this information is available in the Bing Entity Search API here: https://azure.microsoft.com/en-us/services/cognitive-services/bing-entity-search-api/.

How to get lyrics from the Deezer API?

Is it possible to get lyric info for a track from the Deezer api?
I'm looking for time-tagged data for a karaoke app. The deezer site itself clearly has this available and makes use of it to show karaoke-style lyrics, so the data and access exist, but it's not described anywhere in the api documentation.
They actually do have an API, but it's hidden. You will need a basic understanding of searching Deezer first (which is easy as hell), once you can search for a song and get the ID from that search, use
https://www.deezer.com/ajax/gw-light.php?method=song.getLyrics&api_version=1.0&api_token=[api-token]&sng_id=[song-id]
To get your API key, you can use inspect element on deezer.com. Open Inspect > Network > reload the page > click on (most likely) the second entry > scroll down to "Query String Parameters" > copy api_token and use that in the link above.
The docs for the Deezer search API can also be found here.
Unfortunately, the lyrics are not available on our REST API.

OneNote API - Get Raw XML

Using OneNote's Onetastic I've been able to inspect the raw XML structure of the notebooks. The REST API returns the page information as HTML, but is limited (no support for ink, shapes, OCR, etc.)
Is there some way to get the raw XML of the page? Perhaps from the OneDrive API?
Thanks in advance!
Unfortunately, there isn't. You can only get HTML.
I do encourage you to go into our uservoice site and create requests for whetever type of content we don't support:
https://onenote.uservoice.com/forums/245490-onenote-developer-apis
For example, there is one for ink.
https://onenote.uservoice.com/forums/245490-onenote-developer-apis/suggestions/5657688-ink-support-in-the-api

Is there any way to link Facebook Graph data with other data sources (Freebase, DBPedia)?

I have a set of Interest and Likes data from Facebook that I'm interested in enriching with data from other sources, namely Freebase. Is there some way to identify which entry within Freebase cooresponds to a given entry within the Facebook Graph?
Firstly, Facebook Graph does not offer any links to external sources, so it seems any sort of relationship needs to be found within the external source. I've found that, at least for some entries, Freebase offers a 'Facebook URL' and thus in a roundabout way you can link the two. For example for the band 'Taking Back Sunday', here is the Facebook Graph URL:
https://graph.facebook.com/23854511408
... which alternatively can use the vanity URL:
https://graph.facebook.com/TakingBackSunday
now in Freebase if I view the Taking Back Sunday entry in RDF format (http://rdf.freebase.com/rdf/en.taking_back_sunday) or JSON format I can see a link to the Facebook vanity URL. Assuming this attribute is queryable by MQL then linking Freebase to Facebook Graph via this method is possible. However the problem is that many entries in Freebase do not have a link to Facebook.
Any ideas on if there's a consistent way to discover these connections?
Create a spreadsheet out of your list of Interests and Likes with a column for the name and FB graph URI.
Load the spreadsheet into Google Refine.
Reconcile the name column with Freebase.
Create a new column for the Freebase URI based on your reconciled name column using the following GREL code:
"http://rdf.freebase.com/ns/" + cell.recon.match.id[1,-1].replace("/", ".")
Export your augmented data to a new spreadsheet.
If you can get the Facebook graph data into RDF format and if you're interested in connecting particular kinds of entities (e.g., bands) across the datasets, then you can use a link discovery tool like Silk. You write a mapping that tells Silk how to compares the name, genre, hometown etc., and Silk will calculate the connections. This requires quite a bit of effort though.
Another option might be to use Google Refine, which has a “reconciliation” feature that can discover Freebase entities that match your data. The challenge is again how to get the Facebook data into Google Refine.