Skip to content

skygroundmedia/camfind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camfind Storefront

Create an iOS camera app that takes a picture and shows a search results from Shopify similar to CamFind.

  1. 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.

UIX

  1. Camera
  2. Search Results (Listings View)

App Workflow

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=?";

Javascript Example

F. The JSONP results are presented in an iPhone ListView.


Resources

Cloudsight (formerly Camfind)

Mashape Info