Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x authored Jul 19, 2024
1 parent 38d9ca7 commit 106c8e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,19 @@ import { Kukumail } from "@edamame-x/kukumailjs";
const kukumail = new Kukumail({ sessionHash: "SHASH%3A..." });
await kukumail.initlize();
const result = await kukumail.createRandomEmail();

if (result.type === "error") {
console.error(result.data);
}else{
console.log(result.data);

const result2 = await kukumail.getReceivedMails();

if (result2.type === "error") {
console.error(result2.data);
}else {
console.log(result2.data);

if (result2.data.length === 0) {
console.log("No Received Mails")
}else {
Expand Down

0 comments on commit 106c8e7

Please sign in to comment.