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

(Since v1.x)

getStore_With_Live_Offers - This method will fetch all the ACTIVE stores of the user with LIVE offers.

Parameters:

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

Fetch stores with LIVE offers

Just call the getStore_With_Live_Offers() method.

Note! You will get first few LIVE offers from your ACTIVE stores.

Example

$liveOffersResult = $GetStorifyOffersObj->getStore_With_Live_Offers();

Fetch LIVE offers from a specific store

Pass the storeid to fetch LIVE offers from a specific store.

Example

Fetch LIVE offers of a store having id gsStore1.

$liveOffersResult = $GetStorifyOffersObj->getStore_With_Live_Offers(
  $storeid = "gsStore1"
);

Fetch LIVE offers by store name

Pass the storename to fetch LIVE offers by store name.

Example

Fetch LIVE offers by store name Grocery.

$liveOffersResult = $GetStorifyOffersObj->getStore_With_Live_Offers(
  $storeid = null,
  $storename = "Grocery"
);

Fetch LIVE offers by store city

Pass the city to fetch LIVE offers by store city.

Example

Fetch LIVE offers of stores in city Bangalore.

$liveOffersResult = $GetStorifyOffersObj->getStore_With_Live_Offers(
  $storeid = null,
  $storename = null,
  $city = "Bangalore"
);

Fetch LIVE offers by store city location

Pass the citylocation to fetch LIVE offers by city location of stores.

Example

Fetch LIVE offers of stores in city location Indiranagar.

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

Fetch LIVE offers of stores page wise

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

Example

Fetching page 1.

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

Fetch LIVE offers of 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.

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