ebay-api
Version:
eBay API for Node and Browser
44 lines (43 loc) • 2.37 kB
TypeScript
import Restful from '../../index.js';
import { BuyFeedParams } from '../../../../types/index.js';
/**
* The Feed API provides the ability to download TSV_GZIP feed files containing eBay items and an hourly snapshot file
* of the items that have changed within an hour for a specific category, date and marketplace.
*/
export default class Feed extends Restful {
static id: string;
get basePath(): string;
/**
* This method lets you download a TSV_GZIP (tab separated value gzip) Item feed file.
*
* @param {BuyFeedParams} params
* @param range his header specifies the range in bytes of the chunks of the gzip file being returned.
* Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.
*/
getItemFeed(params: BuyFeedParams, range: string): Promise<any>;
/**
* This method lets you download a TSV_GZIP (tab separated value gzip) Item Group feed file.
* @param {BuyFeedParams} params
* @param range his header specifies the range in bytes of the chunks of the gzip file being returned.
* Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.
*/
getItemGroupFeed(params: BuyFeedParams, range: string): Promise<any>;
/**
* The Hourly Snapshot feed file is generated each hour every day for all categories.
*
* @param {BuyFeedParams} params
* @param {String} snapshotDate
* @param range his header specifies the range in bytes of the chunks of the gzip file being returned.
* Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.
*/
getItemSnapshotFeed(params: BuyFeedParams, snapshotDate: string, range: string): Promise<any>;
/**
* The Hourly Snapshot feed file is generated each hour every day for all categories.
*
* @param {BuyFeedParams} params
* @param {String} snapshotDate
* @param range his header specifies the range in bytes of the chunks of the gzip file being returned.
* Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.
*/
getProductFeed(params: BuyFeedParams, snapshotDate: string, range: string): Promise<any>;
}