14
There is the possibility to send a message Whatsapp through a Script PHP
? (Like a text or an e-mail)
I found a class, but it’s old and no longer works (the servers changed, with the sale of Whatsapp and requires a password that I could not find [linked to the Whatsapp user account]).
There is an API called Whatsapi that allows you to do what you want. However, it seems that the API is facing legal problems since Whatsapp does not have a public API like Twitter, Hangouts and other services and this API "exposes" Whatsapp. Well, keep an eye out and see if she helps you. But there’s no guarantee. I believe that that post can also help you.
– humungs
It was precisely this API that I found, however it needs the password of Whatsapp (linked to the user), which is encrypted and everything else, I performed some tests here (no password even) but the servers were changed... I believe it is no longer possible to do this, so I asked here (not to look around)...
– David
And in this case, when sending the message, your user would end up being the sender of the message. Right?
– humungs
So, I used my user (as the API asks), that is, it includes my mobile number (with the country and state code [DDD]) and the IMEI code (user id, through the call *#06#). The password, I tested with it blank "", some numbers "1234567890", and also tested the method login() (which, according to the API, does not need password but erases all user data, so I understood)... But, the problem is that an error occurs before Login (soon on the connection), where the fsockopen() function returns false when calling the server "c.whatsapp.net" by port 443 (according to the default of the API itself).
– David
That this whatsApi works too well downloaded today I compiled and managed the password quietly.
– user12029
If the API is not working I recommend reading: http://answall.com/a/130096/3635
– Guilherme Nascimento