Mika Scraper / TempMailCreateResult
Interface: TempMailCreateResult
Defined in: src/temp-mail/tempmail.ts:15
The TempMailCreateResult interface describes the structure of the response returned by the create() method of the TempMail API.
Properties
status
status:
"error"|"success"
Defined in: src/temp-mail/tempmail.ts:16
Indicates the outcome of the create() operation. Possible values are:
"success": The request was processed successfully."error": An error occurred during the request.
data
data:
TempMailCreateData
Defined in: src/temp-mail/tempmail.ts:17
Contains the result data from the create() operation when the status is "success". If the status is "error", this property may be undefined or contain an error description.
Example
import { createTempMail } from 'mika-scraper';
const result: TempMailCreateResult = createTempMail();
if (result.status === "success") {
console.log("Email created:", result.data);
} else {
console.error("Failed to create email.");
}
Last updated on