@sp-api-sdk/sellers-api-v1
Version:
The Selling Partner API for Sellers (Sellers API) provides essential information about seller accounts, such as: The marketplaces a seller can list in The default language and currency of a marketplace Whether the seller has suspended listings Refer to th
25 lines (24 loc) • 783 B
JavaScript
import { createAxiosInstance } from '@sp-api-sdk/common';
import { Configuration, SellersApi } from './api-model';
export const clientRateLimits = [
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/sellers/v1/marketplaceParticipations$'),
rate: 0.016,
burst: 15,
},
{
method: 'get',
// eslint-disable-next-line prefer-regex-literals
urlRegex: new RegExp('^/sellers/v1/account$'),
rate: 0.016,
burst: 15,
},
];
export class SellersApiClient extends SellersApi {
constructor(configuration) {
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
super(new Configuration(), endpoint, axios);
}
}