Google Shopping

The Search API for Shopping makes it easy for developers, Google Affiliate Network publishers, and Google Commerce Search customers to build innovative applications using product data. The API simplifies access to product data and is optimized to deliver the most relevant product results.

$shopping = eden('google')->shopping($_SESSION['token'], '[DEVELOPER_KEY]');
Figure 1. Shopping Methods
Method Arguments Returns Description
$shopping->addFacet($name, $value, $range = false);
  1. string
  2. array
Eden_Google_Shopping Add facet
$shopping->addKeyword($keyword);
  1. string
Eden_Google_Shopping add keyword to be searched
$shopping->addRestriction($name, $value);
  1. string
  2. array
Eden_Google_Shopping Add restriction for the search
$shopping->getResponse(); none json get response
$shopping->setCountry($country = 'US');
  1. string
Eden_Google_Shopping Sets the country
$shopping->setCrowding($name, $occurrence);
  1. string
  2. int
Eden_Google_Shopping Set crowding of the search result
$shopping->setCurrency($currency = 'USD');
  1. string
Eden_Google_Shopping Sets currency
$shopping->setFacet($value = true);
  1. bool
Eden_Google_Shopping Set facet
$shopping->setOrder($name, $value = 'assending');
  1. string
  2. array
Eden_Google_Shopping Set Order of the search result
$shopping->setSpellChecker($value = true);
  1. bool
Eden_Google_Shopping Set spell checker

© 2012 Openovate Labs. All rights reserved.