Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vzaramel/whatsappweb-clj
Whatsweb Web Client written in Clojure
https://github.com/vzaramel/whatsappweb-clj
api-client clojure encryption reverse-engineering whatsapp whatsapp-web
Last synced: 4 months ago
JSON representation
Whatsweb Web Client written in Clojure
- Host: GitHub
- URL: https://github.com/vzaramel/whatsappweb-clj
- Owner: vzaramel
- Created: 2018-07-21T14:56:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T19:54:01.000Z (over 6 years ago)
- Last Synced: 2024-10-08T19:33:02.147Z (4 months ago)
- Topics: api-client, clojure, encryption, reverse-engineering, whatsapp, whatsapp-web
- Language: Clojure
- Homepage:
- Size: 161 KB
- Stars: 14
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# whatsappweb-clj
**Heavily WIP****Whatsapp Web Client written in Clojure**
Big thanks to [sigalor](https://github.com/sigalor) and contributors of [whatsapp-web-reveng](https://github.com/sigalor/whatsapp-web-reveng) 🍻
## Dependecies
* libsodium for crypto stuff## Features
* receive text
* get userinfo (status, presence, profilepic)
* get contacts, chats
* receive message acknowledge## Install
```
[vzaramel/whatsapp "0.1.1"]
```
## Example
```
(require '[whatsapp.conn :as ws])(def ws-conns (atom {})
(defn handle-every-thing
[ws-conn & args]
(println args))(defn init []
(let [ws-conn (ws/connect {:on-receive handle-every-thing
:on-binary handle-every-thing
:on-error handle-every-thing
:on-connect handle-every-thing
:on-close handle-every-thing})
client-id (:client-id ws-conn)]
(swap! ws-conns assoc client-id ws-conn)
client-id))
(init)
```
## TODO
* refactoring
* receive image and audio
* send text
* documention
* ...## Legal
This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by WhatsApp or any of its
affiliates or subsidiaries. This is an independent and unofficial software. Use at your own risk.