Spaces:
Paused
Paused
Download WA-Bot.postman_collection.json from Rasyiq03/scheffin-api: direct link, hf CLI and curl.
- Browser
- Download file 6.89 kB
-
https://huggingface.co/spaces/Rasyiq03/scheffin-api/resolve/main/WA-Bot.postman_collection.json
- Command line
-
hf download hf://spaces/Rasyiq03/scheffin-api/WA-Bot.postman_collection.json
-
curl -L -o WA-Bot.postman_collection.json https://huggingface.co/spaces/Rasyiq03/scheffin-api/resolve/main/WA-Bot.postman_collection.json
6.89 kB
| { | |
| "info": { | |
| "name": "WA Bot - Kilau Ramadhan", | |
| "_postman_id": "wa-bot-kilau-ramadhan", | |
| "description": "Collection untuk mengirim pesan WhatsApp via WA Bot yang berjalan di port 7860.", | |
| "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
| }, | |
| "variable": [ | |
| { | |
| "key": "base_url", | |
| "value": "http://localhost:7860", | |
| "type": "string" | |
| }, | |
| { | |
| "key": "target", | |
| "value": "628123456789", | |
| "type": "string", | |
| "description": "Nomor tujuan pribadi (tanpa + dan tanpa spasi)" | |
| }, | |
| { | |
| "key": "group_jid", | |
| "value": "120363xxxxxx@g.us", | |
| "type": "string", | |
| "description": "JID grup WA β ambil dari endpoint GET /get/groups" | |
| } | |
| ], | |
| "item": [ | |
| { | |
| "name": "Health Check", | |
| "request": { | |
| "method": "GET", | |
| "header": [], | |
| "url": { | |
| "raw": "{{base_url}}/", | |
| "host": ["{{base_url}}"], | |
| "path": [""] | |
| }, | |
| "description": "Cek status koneksi bot." | |
| } | |
| }, | |
| { | |
| "name": "ββ PESAN PRIBADI ββββββββββββββββββ", | |
| "item": [ | |
| { | |
| "name": "Kirim Teks", | |
| "request": { | |
| "method": "POST", | |
| "header": [{ "key": "Content-Type", "value": "application/json" }], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"target\": \"{{target}}\",\n \"message\": \"Halo! Ini pesan dari WA Bot π€\"\n}", | |
| "options": { "raw": { "language": "json" } } | |
| }, | |
| "url": { "raw": "{{base_url}}/send", "host": ["{{base_url}}"], "path": ["send"] } | |
| } | |
| }, | |
| { | |
| "name": "Kirim Gambar", | |
| "request": { | |
| "method": "POST", | |
| "header": [{ "key": "Content-Type", "value": "application/json" }], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"target\": \"{{target}}\",\n \"url\": \"https://picsum.photos/400\",\n \"caption\": \"Gambar test dari WA Bot πΈ\"\n}", | |
| "options": { "raw": { "language": "json" } } | |
| }, | |
| "url": { "raw": "{{base_url}}/send/image", "host": ["{{base_url}}"], "path": ["send", "image"] } | |
| } | |
| }, | |
| { | |
| "name": "Kirim Video", | |
| "request": { | |
| "method": "POST", | |
| "header": [{ "key": "Content-Type", "value": "application/json" }], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"target\": \"{{target}}\",\n \"url\": \"https://www.w3schools.com/html/mov_bbb.mp4\",\n \"caption\": \"Video test dari WA Bot π¬\"\n}", | |
| "options": { "raw": { "language": "json" } } | |
| }, | |
| "url": { "raw": "{{base_url}}/send/video", "host": ["{{base_url}}"], "path": ["send", "video"] } | |
| } | |
| }, | |
| { | |
| "name": "Kirim Dokumen", | |
| "request": { | |
| "method": "POST", | |
| "header": [{ "key": "Content-Type", "value": "application/json" }], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"target\": \"{{target}}\",\n \"url\": \"https://www.w3.org/WAI/WCAG21/wcag21.pdf\",\n \"filename\": \"laporan.pdf\",\n \"mimetype\": \"application/pdf\"\n}", | |
| "options": { "raw": { "language": "json" } } | |
| }, | |
| "url": { "raw": "{{base_url}}/send/document", "host": ["{{base_url}}"], "path": ["send", "document"] } | |
| } | |
| }, | |
| { | |
| "name": "Kirim Poll", | |
| "request": { | |
| "method": "POST", | |
| "header": [{ "key": "Content-Type", "value": "application/json" }], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"target\": \"{{target}}\",\n \"question\": \"Pilihan favoritmu?\",\n \"options\": [\"Opsi A\", \"Opsi B\", \"Opsi C\"],\n \"multiSelect\": false\n}", | |
| "options": { "raw": { "language": "json" } } | |
| }, | |
| "url": { "raw": "{{base_url}}/send/poll", "host": ["{{base_url}}"], "path": ["send", "poll"] } | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "ββ GRUP ββββββββββββββββββ", | |
| "item": [ | |
| { | |
| "name": "List Semua Grup (ambil JID di sini)", | |
| "request": { | |
| "method": "GET", | |
| "header": [], | |
| "url": { | |
| "raw": "{{base_url}}/get/groups", | |
| "host": ["{{base_url}}"], | |
| "path": ["get", "groups"] | |
| }, | |
| "description": "Tampilkan semua grup WA beserta JID-nya.\n\nSalin nilai 'jid' dari response (contoh: 120363xxxxxx@g.us), lalu paste ke variable {{group_jid}} di Collection Variables, atau langsung ke field 'target' di request di bawah.\n\nContoh response:\n{\n \"status\": \"Success\",\n \"total\": 3,\n \"groups\": [\n { \"name\": \"Keluarga\", \"jid\": \"120363xxxxxx@g.us\", \"participants\": 12 }\n ]\n}" | |
| } | |
| }, | |
| { | |
| "name": "Kirim Teks ke Grup", | |
| "request": { | |
| "method": "POST", | |
| "header": [{ "key": "Content-Type", "value": "application/json" }], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"target\": \"{{group_jid}}\",\n \"message\": \"Halo semua! Pesan dari WA Bot π€\"\n}", | |
| "options": { "raw": { "language": "json" } } | |
| }, | |
| "url": { "raw": "{{base_url}}/send", "host": ["{{base_url}}"], "path": ["send"] }, | |
| "description": "Ganti {{group_jid}} dengan JID grup dari endpoint di atas." | |
| } | |
| }, | |
| { | |
| "name": "Kirim Gambar ke Grup", | |
| "request": { | |
| "method": "POST", | |
| "header": [{ "key": "Content-Type", "value": "application/json" }], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"target\": \"{{group_jid}}\",\n \"url\": \"https://picsum.photos/400\",\n \"caption\": \"Info penting untuk grup! π’\"\n}", | |
| "options": { "raw": { "language": "json" } } | |
| }, | |
| "url": { "raw": "{{base_url}}/send/image", "host": ["{{base_url}}"], "path": ["send", "image"] } | |
| } | |
| }, | |
| { | |
| "name": "Kirim Poll ke Grup", | |
| "request": { | |
| "method": "POST", | |
| "header": [{ "key": "Content-Type", "value": "application/json" }], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"target\": \"{{group_jid}}\",\n \"question\": \"Agenda rapat berikutnya?\",\n \"options\": [\"Senin\", \"Selasa\", \"Rabu\", \"Free vote\"],\n \"multiSelect\": true\n}", | |
| "options": { "raw": { "language": "json" } } | |
| }, | |
| "url": { "raw": "{{base_url}}/send/poll", "host": ["{{base_url}}"], "path": ["send", "poll"] } | |
| } | |
| } | |
| ] | |
| } | |
| ] | |
| } | |