创建一个可以回复 WhatsApp 消息的网络服务 [英] Create a web service that can answer to WhatsApp messages

查看:33
本文介绍了创建一个可以回复 WhatsApp 消息的网络服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解是否可以创建一个可以发送和回复 WhatsApp 消息的网络服务.我在网上搜索,我找到了WhatsAPI

I'm trying to understand if it's possible to create a web service that can send and answer to WhatsApp messages. I searched on the web and I found the WhatsAPI,

我想这个解决方案工作正常,但在 WhatsApp 的实际版本中,不可能获得昵称、发件人、imei 和密码.

I guess this solution work fine, but with the actual version of WhatsApp it's not possible to get the nickname, the sender, the imei and the password.

为了得到它们,我设置了一台 Linux PC,在其中安装了 mitmproxy 来嗅探三星 Galaxy S4 的网络流量.通过使用 mitmproxy,我可以看到手机生成的网络流量,因此我尝试注册到 WhatsApp(使用另一个 SIM 卡),但在 mitmproxy 中我看不到 WhatsAPI 所需的数据.

To get them I set up a Linux PC in which I installed mitmproxy to sniff the web traffic of a Samsung Galaxy S4. By using mitmproxy I can see the web traffic generated by the phone, so I tried to register to WhatsApp (with an another SIM), but in mitmproxy I can't see the data I need for WhatsAPI.

有谁知道是否可以通过其他方式获取密码?

Does anyone knows if it's possible to get the password by using another way?

如果它存在,你能给我建议一种方法吗?您认为这样做可行吗,还是使用 Telegram 或微信(它们有公共 API)更好?

If it exist can you suggest me a way? Do you think it's possible to do that or it's better to use Telegram or Wechat (they have public API)?

推荐答案

对于 Java,您可以尝试 WhatsUp

For Java, you can try WhatsUp

对于 Python,请参阅 YowsUp.

For Python, see YowsUp.

注意 WhatsApp 威胁 法律行动针对这些图书馆开发者中的许多人,并且不正式支持以这种方式使用该服务.

Beware that WhatsApp threatens legal action against many of these library developers and does not officially support using the service this way.

我还直接与 WhatsApp 代表进行了交谈,他们表示 WhatsApp 的商业 API 使用是不可接受的.

I have also spoken directly with WhatsApp representatives who have said no commercial API use of WhatsApp is acceptable.

另请注意,群发消息违反 WhatsApp 服务条款.

Also note that bulk messaging is against the WhatsApp terms of service.

WhatsAPI 曾经有一个 PHP 实现,以及另一个 Java 实现 WhatsApi4J.由于法律威胁,两者都不再可用.

There used to be a PHP implementation at WhatsAPI, and another Java implementation, WhatsApi4J. Both are no longer available due to legal threats.

这篇关于创建一个可以回复 WhatsApp 消息的网络服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆