zerobounce
Version:
ZeroBounce Email Verification Library
16 lines (15 loc) • 605 B
TypeScript
import { CreditsResponseSuccess } from './credits';
import { ValidateResponseSuccess } from './validate';
import { ResponseType } from './response-type';
export declare const API_URL = "https://api.zerobounce.net/v2";
export declare class Api {
private apiKey;
private apiURL;
constructor(apiKey: string);
setApiURL(url: string): Api;
getApiURL(): string;
setApiKey(url: string): Api;
getApiKey(): string;
getCredits(): Promise<ResponseType<CreditsResponseSuccess>>;
validate(email: string, ipAddress?: string | null): Promise<ResponseType<ValidateResponseSuccess>>;
}