API > eden > google > shopping.php
View Source

class Eden_Google_Shopping

Google calendar

Constants

  • RANGES: :ranges
  • REQUEST_URL: https://www.googleapis.com/shopping/search/v1/public/products
  • NAME: name
  • VALUE: value
  • QUERY: q
  • COUNTRY: country
  • CURRENCY: currency
  • RESTRICT_BY: restrictBy
  • RANK_BY: rankBy
  • CROWD_BY: crowdBy
  • SPELLING_CHECK: spelling.enabled
  • FACETS_ENABLED: facets.enabled
  • FACETS_INCLUDE: facets.include

Public Methods

public function addFacet($name, $value, $range = false)

Add facet

Arguments

  1. string
  2. array

Returns this

public function addKeyword($keyword)

add keyword to be searched

Arguments

  1. string

Returns this

public function addRestriction($name, $value)

Add restriction for the search

Arguments

  1. string
  2. array

Returns this

public function getResponse()

get response

Returns json

public function setCountry($country = 'US')

Sets the country

Arguments

  1. string

Returns this

public function setCrowding($name, $occurrence)

Set crowding of the search result

Arguments

  1. string
  2. int

Returns this

public function setCurrency($currency = 'USD')

Sets currency

Arguments

  1. string

Returns this

public function setFacet($value = true)

Set facet

Arguments

  1. bool

Returns this

public function setOrder($name, $value = 'assending')

Set Order of the search result

Arguments

  1. string
  2. array

Returns this

public function setSpellChecker($value = true)

Set spell checker

Arguments

  1. bool

Returns this


© 2012 Openovate Labs. All rights reserved.