获得了WhatsApp消息获得了、消息、WhatsApp

2023-09-05 00:40:08 作者:还没变成王子的青蛙ぺ

是否有可能建立一个监听者,得到一个消息的 WhatsApp的在Android的? 我的意思是就像你有一个的BroadcastReceiver 收听来电短信机器人......

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...

时的任何API是需要的东西,或者是合法的事或我需要得到从的WhatsApp

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

推荐答案

WhatsApp的没有公布任何官方的API。

Whatsapp did not publish any official APIs.

有与WhatsApp的沟通这个开源的API,它不是正式的,可能会停止工作,如果WhatsApp的更新自己的协议。

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

对于使用这种或其他非公务API的合法性,这取决于你同意与WhatsApp的的服务协议。读它,看看他们是否在使用自己的通信协议与客户比他们的其他皱眉头。我的猜测是他们不答应。

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.

更新:这GitHub的库似乎已脱机由于法律威胁

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