validateEmail (sdk.gen)

temps · email, email-validation, email-verification, http-client

Calls POST /emails/validate to validate an email address using bearer auth. Generated SDK helper with typed options, responses, and errors.

// Source: https://github.com/mperkins0155/temps | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
export const validateEmail = <ThrowOnError extends boolean = false>(options: Options<ValidateEmailData, ThrowOnError>): RequestResult<ValidateEmailResponses, ValidateEmailErrors, ThrowOnError> => (options.client ?? client).post<ValidateEmailResponses, ValidateEmailErrors, ThrowOnError>({
    security: [{ scheme: 'bearer', type: 'http' }],
    url: '/emails/validate',
    ...options,
    headers: {
        'Content-Type': 'application/json',
        ...options.headers
    }
});

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key