cloudflare
Version:
The official TypeScript library for the Cloudflare API
20 lines • 822 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
export class Top extends APIResource {
bots(query = {}, options) {
if (isRequestOptions(query)) {
return this.bots({}, query);
}
return this._client.get('/radar/verified_bots/top/bots', { query, ...options })._thenUnwrap((obj) => obj.result);
}
categories(query = {}, options) {
if (isRequestOptions(query)) {
return this.categories({}, query);
}
return this._client.get('/radar/verified_bots/top/categories', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
(function (Top) {
})(Top || (Top = {}));
//# sourceMappingURL=top.mjs.map