getStore - www-getstorify-com/getstorify-offers-php-sdk GitHub Wiki

(Since v1.x)

getStore - This will fetch stores of the user.

Parameters:

  • storeid
  • storename
  • city
  • citylocation
  • page
  • pagelimit

Fetch stores

Just call the getStore() method.

Note! You will get first few stores from your account on getStorify.

Example

$storeResult = $GetStorifyOffersObj->getStore();

Fetch specific store

Pass the storeid to fetch a specific store.

Example

Fetch store having id gsStore1.

$storeResult = $GetStorifyOffersObj->getStore(
  $storeid = "gsStore1"
);

Fetch stores by name

Pass the storename to fetch stores by name.

Example

Fetch stores having name Grocery.

$storeResult = $GetStorifyOffersObj->getStore(
  $storeid = null,
  $storename = "Grocery"
);

Fetch stores by city

Pass the city to fetch stores by city.

Example

Fetch stores in city Bangalore.

$storeResult = $GetStorifyOffersObj->getStore(
  $storeid = null,
  $storename = null,
  $city = "Bangalore"
);

Fetch stores by city location

Pass the citylocation to fetch stores by city.

Example

Fetch stores in city location Indiranagar.

$storeResult = $GetStorifyOffersObj->getStore(
  $storeid = null,
  $storename = null,
  $city = null,
  $citylocation = "Indiranagar"
);

Fetch stores page wise

By default, each page will hold max 10 records. So, page 1 will return first 10 stores. Page 2 will return the next 10 and so on.

Example

Fetching page 1.

$storeResult = $GetStorifyOffersObj->getStore(
  $storeid = null,
  $storename = null,
  $city = null,
  $citylocation = null,
  $page = 1
);

Fetch stores with page limit

Pre page can have max 10 records. Pass the pagelimit to control the total records fetched per page.

Example

Fetching 5 records per page.

$storeResult = $GetStorifyOffersObj->getStore(
  $storeid = null,
  $storename = null,
  $city = null,
  $citylocation = null,
  $page = 1,
  $pagelimit = 5
);