Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS - Using Search API for Google Shopping
    text
    copied!<p>My ultimate goal is to search for an item (using a query in code) and display some information from a JSON object using the Google Shopping API - Objective-C Client. </p> <p>I know that the <a href="https://developers.google.com/shopping-search/v1/getting_started#searching-products" rel="nofollow">search API for shopping</a> is going to be deprecated very shortly but wanted to at least get something to work just to show that it does work. So short term I would like to get this to work and long term use something similar (such as an Amazon API). </p> <p>I am targeting iOS 6.0+ and am currently using XCode 4.6. I followed <a href="http://paz-labs.com/importing-google-api-objectivec-cllient-to-xcode-4-5/" rel="nofollow">this blog tutorial here</a> for XCode 4.5 and got everything set up as stated here. (Although maybe there is another way to get the pre-built library built - but the blog author said that that did not work)</p> <p>If you look at <a href="https://code.google.com/p/google-api-objectivec-client/wiki/Introduction#Requirements" rel="nofollow">this link</a> they give you an example of how to use the API(under Basics - Objects and Queries) but I have a problem in that I cannot find the GTLServiceGoogleShopping object anywhere. If you use the svn command to checkout the library files you don't get this object nor do you get any example code for this particular service. </p> <p>I am wondering if anyone has done this in iOS before and/or if anyone would like to recommend an alternative way to do a product search on the web that returns a JSON Object, that is compatible with XCode/iOS and that is as easy to use as the Google Shopping API seems to be. (i.e. use a few objects to make a http request then parse the JSON object as needed). </p> <p>Any help/information/guidance would be greatly appreciated. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload