-
-
Save lukluk/e3bb02fc86e52d9c6bbdfb1958c7f7a9 to your computer and use it in GitHub Desktop.
WA API documentation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WA API | |
``` | |
GET /list | |
--- get contacts | |
--- RESPONSE | |
["jhon","+191734562","+628821985723"] | |
GET /chat?user=CONTACT | |
--- get chat history | |
--- RESPONSE | |
[ | |
"23452343455": | |
{ | |
"from":"jhon", | |
"timestamp":234214534, | |
"text":"hello", | |
"status":"seen" | |
} | |
"987654345663": | |
{ | |
"from":"you", | |
"timestamp":234234534, | |
"text":"hi", | |
"status":"sent" | |
} | |
] | |
GET /sendmsg?user=CONTACT&msg=MESSAGETEXT | |
--- send message to CONTACT | |
--- RESPONSE | |
{"success":true,"msg":"thanksyou"} | |
GET /unread | |
--- get all unread msg | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment