UNPKG

ebay-api

Version:

eBay API for Node and Browser

45 lines (44 loc) 1.36 kB
import Restful from '../../index.js'; /** * The Marketing API retrieves eBay products based on a metric, such as Best Selling, as well as products that were * also bought and also viewed. */ export default class Marketing extends Restful { get basePath() { return '/buy/marketing/v1_beta'; } // // Marketing // Client Credentials: https://api.ebay.com/oauth/api_scope/buy.marketing // /** * This call returns products that were also bought when shoppers bought the product specified in the request. * @param params */ getAlsoBoughtByProduct(params) { return this.get(`/merchandised_product/get_also_bought_products`, { params }); } /** * This call returns products that were also viewed when shoppers viewed the product specified in the request. * * @param params */ getAlsoViewedByProduct(params) { return this.get(`/merchandised_product/get_also_viewed_products`, { params }); } /** * This call returns an array of products based on the category and metric specified. * * @param params */ getMerchandisedProducts(params) { return this.get(`/merchandised_product`, { params }); } } Marketing.id = 'Marketing';