Create an iOS camera app that takes a picture and shows a search results from Shopify similar to CamFind.
- Open the app
- Take a picture
- Submit the image
- Get the “keyword” result
- Use the keyword to search for an item on a Shopify Store
- The search response is a listings from within the app.
- Camera
- Search Results (Listings View)
A. User takes a picture and sends a POST to CamFind Image Request API
B. The CamFind API responds with a
C. Using the <token>
, the app sends a GET request to [CamFind Image Response API]
https://camfind.p.mashape.com/image_responses/<token>
D. CamFind API responds back with a:
{
"status": "completed",
"name": "description of image"
}
E. Using "name": "description of image"
, the app sends another GET request to YQL server.
var q = "http://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20html%20WHERE%20url%3D%22http%3A%2F%2Fimpctful.com%2Fsearch%3Fx%3D0%26amp%3By%3D0%26amp%3Bq%3D" + keyword + "%22%20and%20xpath%3D'%2F%2F*%5B%40id%3D%22search%22%5D'&format=json&diagnostics=true&callback=?";
F. The JSONP results are presented in an iPhone ListView.