Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x committed Oct 22, 2024
1 parent 4e687e5 commit d127402
Show file tree
Hide file tree
Showing 34 changed files with 1,788 additions and 1,367 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
tags:
- '*'
- "*"

jobs:
jsr:
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Install deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
deno-version: v2.x

- name: Publish to JSR
run: deno run -A jsr:@david/publish-on-tag@0.1.4 --unstable-sloppy-imports
run: deno run -A jsr:@david/publish-on-tag@0.1.4
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deno.enable": true
}
77 changes: 39 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# kukumail.js

JavaScript Library for "m.kuku.lu"
Created by [@amex2189](https://twitter.com/amex2189)
Temp Mail | 捨てメアドサービス

注意(JP): SESSIONは何度も生成すると弾かれます。弾かれた場合はWebからcf_clearnceを取得するか、ipを変更してください。出来るだけ一度生成したら使いまわしてください。
Attention(EN): createAccount should be called only once the first time to obtain the sessionHash.

- ALL Features
- Send Email
- Create Any Email
- Get Mail
- Delete Email
- Get Mailbox
- And more
JavaScript Library for "m.kuku.lu" Created by
[@amex2189](https://twitter.com/amex2189) Temp Mail | 捨てメアドサービス

注意(JP):
SESSIONは何度も生成すると弾かれます。弾かれた場合はWebからcf_clearnceを取得するか、ipを変更してください。出来るだけ一度生成したら使いまわしてください。\
Attention(EN): createAccount should be called only once the first time to obtain
the sessionHash.

- ALL Features
- Send Email
- Create Any Email
- Get Mail
- Delete Email
- Get Mailbox
- And more

## Usage

Expand All @@ -33,30 +34,29 @@ 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 {
const result3 = await kukumail.getMailContent("recv", result2.data[0].id);

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

}
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 {
const result3 = await kukumail.getMailContent("recv", result2.data[0].id);

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

// And more
Expand All @@ -71,5 +71,6 @@ console.log(kukumail.sessionHash);

![cookies](./assets/cookies.png)

And more: [https://jsr.io/@edamame-x/kukumailjs/doc](https://jsr.io/@edamame-x/kukumailjs/doc)
And more:
[https://jsr.io/@edamame-x/kukumailjs/doc](https://jsr.io/@edamame-x/kukumailjs/doc)
Question: [https://discord.gg/MrtfbAcP3K](https://discord.gg/MrtfbAcP3K)
Loading

0 comments on commit d127402

Please sign in to comment.