UNPKG

ebay-api

Version:

eBay API for Node and Browser

39 lines (38 loc) 1.42 kB
import Restful from '../../index.js'; /** * This method retrieves the call limit and utilization data for an application. */ export default class Analytics extends Restful { get basePath() { return '/developer/analytics/v1_beta'; } /** * This method retrieves the call limit and utilization data for an application. * * @param apiContext This optional query parameter filters the result to include only the specified API context. * @param apiName This optional query parameter filters the result to include only the APIs specified. */ getRateLimits(apiContext, apiName) { return this.get(`/rate_limit/`, { params: { api_context: apiContext, api_name: apiName } }); } /** * This method retrieves the call limit and utilization data for an application user. * * @param apiContext This optional query parameter filters the result to include only the specified API context. * @param apiName This optional query parameter filters the result to include only the APIs specified. */ getUserRateLimits(apiContext, apiName) { return this.get(`/user_rate_limit/`, { params: { api_context: apiContext, api_name: apiName } }); } } Analytics.id = 'Analytics';