cloudflare
Version:
The official TypeScript library for the Cloudflare API
29 lines • 1.05 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 BaseSpoof = /* @__PURE__ */ (() => {
class BaseSpoof extends APIResource {
/**
* Retrieves the top TLDs by emails classified as spoof or not.
*
* @example
* ```ts
* const spoof =
* await client.radar.email.security.top.tlds.spoof.get(
* 'SPOOF',
* );
* ```
*/
get(spoof, query = {}, options) {
return this._client.get(path `/radar/email/security/top/tlds/spoof/${spoof}`, {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
BaseSpoof._key = Object.freeze(['radar', 'email', 'security', 'top', 'tlds', 'spoof']);
return BaseSpoof;
})();
export class Spoof extends BaseSpoof {
}
//# sourceMappingURL=spoof.mjs.map