cloudflare
Version:
The official TypeScript library for the Cloudflare API
29 lines • 1.03 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../../../core/resource.mjs";
import { path } from "../../../../../../internal/utils/path.mjs";
export var BaseSpam = /* @__PURE__ */ (() => {
class BaseSpam extends APIResource {
/**
* Retrieves the top TLDs by emails classified as spam or not.
*
* @example
* ```ts
* const spam =
* await client.radar.email.security.top.tlds.spam.get(
* 'SPAM',
* );
* ```
*/
get(spam, query = {}, options) {
return this._client.get(path `/radar/email/security/top/tlds/spam/${spam}`, {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
BaseSpam._key = Object.freeze(['radar', 'email', 'security', 'top', 'tlds', 'spam']);
return BaseSpam;
})();
export class Spam extends BaseSpam {
}
//# sourceMappingURL=spam.mjs.map