Skip to content

Instantly share code, notes, and snippets.

@lukluk
Created November 21, 2016 03:42
Show Gist options
  • Save lukluk/e3bb02fc86e52d9c6bbdfb1958c7f7a9 to your computer and use it in GitHub Desktop.
Save lukluk/e3bb02fc86e52d9c6bbdfb1958c7f7a9 to your computer and use it in GitHub Desktop.
WA API documentation.md
# 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