getLivePopularOffer - www-getstorify-com/getstorify-offers-php-sdk GitHub Wiki
(Since v1.x)
getLivePopularOffer - This method will fetch all the LIVE popular offers of ACTIVE stores of a user.
Parameters:
- storeid
- offerid
- offertitle
- store_city
- store_citylocation
- page
- pagelimit
Fetch live popular offers
Just call the getLivePopularOffer()
method.
Note! You will get first few LIVE popular offers from your account on getStorify.
Example
$offersResult = $GetStorifyOffersObj->getLivePopularOffer();
Fetch live popular offers of a specific store
Pass the storeid
to fetch LIVE popular offers of a specific store.
Example
Fetch LIVE popular offers of a store having id gsStore1
.
$offersResult = $GetStorifyOffersObj->getLivePopularOffer(
$storeid = "gsStore1"
);
Fetch specific live popular offer
Pass the offerid
to fetch specific live popular offer.
Example
Fetch live popular offer having id gsOffer1
.
$offersResult = $GetStorifyOffersObj->getLivePopularOffer(
$storeid = null,
$offerid = "gsOffer1"
);
Fetch live popular offer by title
Pass the offertitle
to fetch live popular offers by title.
Example
Fetch live popular offers having title Sale
.
$offersResult = $GetStorifyOffersObj->getLivePopularOffer(
$storeid = null,
$offerid = null,
$offertitle = "Sale"
);
Fetch live popular offers by store city
Pass store_city
to fetch live popular offers by store city.
Example
Fetch live popular offers of stores that are in city Bangalore
.
$offersResult = $GetStorifyOffersObj->getLivePopularOffer(
$storeid = null,
$offerid = null,
$offertitle = null,
$store_city = "Bangalore"
);
Fetch live popular offers by city location of stores
Pass store_citylocation
to fetch live popular offers by city location of stores.
Example
Fetch live popular offers running in stores that have city location as Indiranagar
.
$offersResult = $GetStorifyOffersObj->getLivePopularOffer(
$storeid = null,
$offerid = null,
$offertitle = null,
$store_city = null,
$store_citylocation = "Indiranagar"
);
Fetch live popular offers 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.
$offersResult = $GetStorifyOffersObj->getLivePopularOffer(
$storeid = null,
$offerid = null,
$offertitle = null,
$store_city = null,
$store_citylocation = null,
$page = 1
);
Fetch live popular offers 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.
$offersResult = $GetStorifyOffersObj->getLivePopularOffer(
$storeid = null,
$offerid = null,
$offertitle = null,
$store_city = null,
$store_citylocation = null,
$page = 1,
$pagelimit = 5
);