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 is lacking in this regard, and I've only a minor Python experience.
So... how can I read and process with PHP yowsup received messages?