Since WhatsAPI/Chat-API is no longer maintained, I'm trying to understand how to interact with yowsup from PHP.
Sending messages is easy with exec()
and CLI is easy: yowsup-cli demos --send 39xxx "Test message" --config yowsup.txt
did the trick.
Reading the message from PHP is where I'm swamped at. The CLI echo client works as expected with yowsup-cli demos --echo --config yowsup.txt
, but I need to ingest the number+message sent in my PHP script instead of echoing.
The doc,而且我只有一点点Python体验。
所以...... 我如何阅读和处理PHP yowsup收到的消息?
答案 0 :(得分:0)
从./yowsup-cli demos -y -c config.text
开始,输入/ L登录。现在,您可以获得文本,语音,视频和文件的实时发送和接收界面,其中包含所述数据发送和收据的时间戳,标签和发送给您的聊天伙伴。查看GitHub上的Chat-API项目,为协议设计包装器(PHP,Java,Ruby等)...