Copied!

RecommendationsServiceInterface

RecommendationsServiceInterface.php : 18
Interface

Service for fetching product and content recommendations from Raptor.

Methods

publicgetContentBasedOnItemWeb()

RecommendationsServiceInterface.php : 60
public getContentBasedOnItemWeb(string $productId[, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ContentRecommendations

Parameters

Name Type Default value Description
$productId string - -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ContentRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetContentBasedOnProductCategoryWeb()

RecommendationsServiceInterface.php : 71
public getContentBasedOnProductCategoryWeb(string $categoryId[, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ContentRecommendations

Parameters

Name Type Default value Description
$categoryId string - -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ContentRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetContentCatalogueRank()

RecommendationsServiceInterface.php : 248
public getContentCatalogueRank([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ContentRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ContentRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetItemsBasedOnContentWeb()

RecommendationsServiceInterface.php : 93
public getItemsBasedOnContentWeb(string $contentId[, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$contentId string - -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetMerchandisingContentWeb()

RecommendationsServiceInterface.php : 216
public getMerchandisingContentWeb([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ContentRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ContentRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetMerchandisingItemsWeb()

RecommendationsServiceInterface.php : 206
public getMerchandisingItemsWeb([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetNumOfUsersRightNowWeb()

RecommendationsServiceInterface.php : 196
public getNumOfUsersRightNowWeb([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetPIMRelatedItemsForBasketWeb()

RecommendationsServiceInterface.php : 237
public getPIMRelatedItemsForBasketWeb(string $productIds[, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$productIds string - -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetPIMRelatedItemsWeb()

RecommendationsServiceInterface.php : 226
public getPIMRelatedItemsWeb(string $productId[, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$productId string - -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetPopularBrandsWeb()

RecommendationsServiceInterface.php : 166
public getPopularBrandsWeb([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetPopularCategoriesWeb()

RecommendationsServiceInterface.php : 176
public getPopularCategoriesWeb([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetPopularContentWeb()

RecommendationsServiceInterface.php : 186
public getPopularContentWeb([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ContentRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ContentRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetPopularItemsInCategoryWeb()

RecommendationsServiceInterface.php : 37
public getPopularItemsInCategoryWeb(string $categoryId, bool $inStockOnly[, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$categoryId string - -
$inStockOnly bool - -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetPopularItemsWeb()

RecommendationsServiceInterface.php : 114
public getPopularItemsWeb(bool $inStockOnly[, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$inStockOnly bool - -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetProductCatalogueRank()

RecommendationsServiceInterface.php : 258
public getProductCatalogueRank([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetSimilarContentWeb()

RecommendationsServiceInterface.php : 82
public getSimilarContentWeb(string $contentId[, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ContentRecommendations

Parameters

Name Type Default value Description
$contentId string - -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ContentRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetSimilarItemsWeb()

RecommendationsServiceInterface.php : 25
public getSimilarItemsWeb(string $productId, bool $inStockOnly[, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$productId string - -
$inStockOnly bool - -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetUserContentHistoryWeb()

RecommendationsServiceInterface.php : 156
public getUserContentHistoryWeb([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ContentRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ContentRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetUserContentRecommendationsWeb()

RecommendationsServiceInterface.php : 104
public getUserContentRecommendationsWeb([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ContentRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ContentRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetUserCrossSellingItemsWeb()

RecommendationsServiceInterface.php : 136
public getUserCrossSellingItemsWeb([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetUserItemHistoryWeb()

RecommendationsServiceInterface.php : 49
public getUserItemHistoryWeb([bool $inStockOnly = false ][, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$inStockOnly bool false -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetUserItemRecommendationsWeb()

RecommendationsServiceInterface.php : 125
public getUserItemRecommendationsWeb(bool $inStockOnly[, int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$inStockOnly bool - -
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface

publicgetUserLookAlikeItemsWeb()

RecommendationsServiceInterface.php : 146
public getUserLookAlikeItemsWeb([int $numOfItems = 10 ][, array<string, mixed> $options = [] ]) : ProductRecommendations

Parameters

Name Type Default value Description
$numOfItems int 10 -
$options array<string, mixed> [] -

Return values

ProductRecommendations

Tags
Throws
RaptorClientExceptionInterface