Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get WhatsApp messages

Is it possible to create a listener to get a message from whatsApp in android?
I mean like you have a broadcastReceiver to listen to incoming SMS in android...

Is any API is needed for that thing, or is it legal thing to do or I need to get any permission from whatsApp?

like image 248
Elior Avatar asked Apr 29 '13 17:04

Elior


People also ask

Can I retrieve all WhatsApp messages?

Install and open WhatsApp, then verify your number. Tap RESTORE when prompted to restore your chats and media from Google Drive. After the restoration process is complete, tap NEXT. Your chats will be displayed once initialization is complete.


1 Answers

Whatsapp did not publish any official APIs.

There's this open source API for communicating with whatsapp, it's not official and might stop working if Whatsapp update their protocols.

https://github.com/venomous0x/WhatsAPI

Regarding the legality of using this or other non-official API, it depends on the service agreement that you agreed to with Whatsapp. Read it and see if they frown upon using their communication protocols with clients other than theirs. My guess would be they do not allow it.

UPDATE: This GitHub repository seems to have been taken offline due to legal threats.

like image 185
tbkn23 Avatar answered Oct 23 '22 14:10

tbkn23