GetGiftFinderProductList

From Wiki

Jump to: navigation, search

The 'getGiftFinderProductList' API request will return the requested gift finder product lists.

Parameters


Element

Type

iAdult optional

Allow adult content

Value Type: int

sSort optional

The order in which to return the products

Value Type: int

iOffset optional

From which point onwards in the list to return products from

Value Type: int

iLimit optional

The maximum number of products to return.

NOTE: If this is not set or a '0' value is passed, only refine-bys will be returned. Value Type: int

oActiveRefineByGroup optional

Objects containing any active refine bys

Value Type: RefineByGroup

sMode optional

The mode to perform server-side searches in

Value Type: RefineByGroup

sColumnToReturn optional

Columns to return with each product. By default only required columns are returned. Add as many columns as you require from the Product_PSAPI data type to your API call to get more data.

Value Type: string/array
Example: array('sBrand','sDescription')


Response


oProduct

Objects of any returned product

Value Type: Product

iTotalCount

Total count of products found

Value Type: int

oActiveRefineByGroup

Objects containing any active refine bys

Value Type: RefineByGroup

oRefineByGroup

Objects containing any remaining available refine bys

Value Type: RefineByGroup


Example Request (parameters)


$oRefineBy = new stdClass();
$oRefineBy->iId = 7;
$oRefineBy->sName = '';

$oRefineByDefinition = new stdClass();
$oRefineByDefinition->sId = 2;
$oRefineByDefinition->sName = '';
$oRefineBy->oRefineByDefinition = $oRefineByDefinition;

$aParams13 = array("oActiveRefineByGroup" => $oRefineBy, 'iLimit' => 10);

$oResponse = $oClient->call('getGiftFinderProductList', $aParams13);


Example Response


stdClass Object
(
    [oProduct] => Array
        (
            [0] => stdClass Object
                (
                    [iId] => 105140182
                    [iCategoryId] => 177
                    [iMerchantId] => 1965
                    [iAdult] => 0
                    [sName] => iLLoom Balloons
                    [sAwDeepLink] => ...
                    [sAwThumbUrl] => http://images.productserve.com/thumb/1965/105140182.jpg
                    [fPrice] => 5.95
                )

            [1] => stdClass Object
                (
                    [iId] => 55881824
                    [iCategoryId] => 430
                    [iMerchantId] => 1965
                    [iAdult] => 0
                    [sName] => Voodoo Knife Block
                    [sAwDeepLink] => ...
                    [sAwThumbUrl] => http://images.productserve.com/thumb/1965/55881824.jpg
                    [fPrice] => 59.95
                )

            [2] => stdClass Object
                (
                    [iId] => 3047477881
                    [iCategoryId] => 379
                    [iMerchantId] => 164
                    [iAdult] => 0
                    [sName] => Jack Rabbit Headphone Splitter
                    [sAwDeepLink] => ...
                    [sAwThumbUrl] => http://images.productserve.com/thumb/164/3047477881.jpg
                    [fPrice] => 6.95
                )

            [3] => stdClass Object
                (
                    [iId] => 118201764
                    [iCategoryId] => 570
                    [iMerchantId] => 164
                    [iAdult] => 0
                    [sName] => Personalised Birthday Milk Chocolate
                    [sAwDeepLink] => ...
                    [sAwThumbUrl] => http://images.productserve.com/thumb/164/118201764.jpg
                    [fPrice] => 5.95
                )

            [4] => stdClass Object
                (
                    [iId] => 49086108
                    [iCategoryId] => 570
                    [iMerchantId] => 164
                    [iAdult] => 0
                    [sName] => Personalised Jack Daniels & Coke Gift Set
                    [sAwDeepLink] => ...
                    [sAwThumbUrl] => http://images.productserve.com/thumb/164/49086108.jpg
                    [fPrice] => 17.95
                )

            [5] => stdClass Object
                (
                    [iId] => 42744688
                    [iCategoryId] => 379
                    [iMerchantId] => 164
                    [iAdult] => 0
                    [sName] => Original Sun Jar by Suck UK - Pink
                    [sAwDeepLink] => ...
                    [sAwThumbUrl] => http://images.productserve.com/thumb/164/42744688.jpg
                    [fPrice] => 15.95
                )

            [6] => stdClass Object
                (
                    [iId] => 680416057
                    [iCategoryId] => 181
                    [iMerchantId] => 164
                    [iAdult] => 0
                    [sName] => My Cuppa Tea Mug
                    [sAwDeepLink] => ...
                    [sAwThumbUrl] => http://images.productserve.com/thumb/164/680416057.jpg
                    [fPrice] => 6.95
                )

            [7] => stdClass Object
                (
                    [iId] => 127359547
                    [iCategoryId] => 570
                    [iMerchantId] => 164
                    [iAdult] => 0
                    [sName] => Personalised Purple Ronnie Brilliant Boyfriend Chocolate
                    [sAwDeepLink] => ...
                    [sAwThumbUrl] => http://images.productserve.com/thumb/164/127359547.jpg
                    [fPrice] => 6.95
                )

        )
...

Privacy

Due to new European legislation regarding how websites store information about you, AWIN is updating its privacy policy. You can see the new version of our policy here. If you would like to see the information we capture on this website, please click here for further details. In order to accept cookies on this site please click the 'I ACCEPT' button