interface ResearchClientInterface

Interface ResearchClientInterface

Represents an object capable of querying SellerLabs' Research API

Methods

string
generateCode(null|int $timestamp = null)

Generate an authorization code for NodeMWS

getOffers(string $asin, bool $noPaapi = false)

Get the current offers for an ASIN from NodeMWS

getFees(string $asin, float $price)

Call the fees endpoint of NodeMWS and return the response

getSearch(string $idType, string $idCode)

Search the catalog and return the response

getAsinCategories(string $asin)

Get categories for an ASIN

getCategoryById(string $categoryId)

Get a category by ID

getItemSearch(string $keywords, int $page = 1, string $searchIndex = 'Blended')

Hit the itemSearch endpoint of research-api with a given keyword phrase, page (default 1) and search index (default Blended)

Details

at line line 31
string generateCode(null|int $timestamp = null)

Generate an authorization code for NodeMWS

Parameters

null|int $timestamp

Return Value

string

at line line 41
OffersResponse getOffers(string $asin, bool $noPaapi = false)

Get the current offers for an ASIN from NodeMWS

Parameters

string $asin
bool $noPaapi

Return Value

OffersResponse

at line line 51
FeesResponse getFees(string $asin, float $price)

Call the fees endpoint of NodeMWS and return the response

Parameters

string $asin
float $price

Return Value

FeesResponse

at line line 61
SearchResponse getSearch(string $idType, string $idCode)

Search the catalog and return the response

Parameters

string $idType
string $idCode

Return Value

SearchResponse

at line line 70
GetAsinCategoriesResponse getAsinCategories(string $asin)

Get categories for an ASIN

Parameters

string $asin

Return Value

GetAsinCategoriesResponse

at line line 79
GetCategoryByIdResponse getCategoryById(string $categoryId)

Get a category by ID

Parameters

string $categoryId

Return Value

GetCategoryByIdResponse

at line line 91
ItemSearchResponse getItemSearch(string $keywords, int $page = 1, string $searchIndex = 'Blended')

Hit the itemSearch endpoint of research-api with a given keyword phrase, page (default 1) and search index (default Blended)

Parameters

string $keywords
int $page
string $searchIndex

Return Value

ItemSearchResponse