venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.13k forks source link

I always get "Wrong password" message when I run tests/whatsapi.php #237

Open jgomezlopez opened 11 years ago

jgomezlopez commented 11 years ago

I run tests/whatsapi.php -s phone "Message" I always get wrong password message. I put my phone number with country code and provide my imei from my android phone in $imei variable.

stoyicker commented 11 years ago

Most likely, the device in which you use WhatsApp has the app updated to, at least, v2.8.8889, meaning that it uses the v2 login method, which is being a considerable headache for the users of this API since its release, because it changes the method in which the password is generated/obtained, and therefore you receive 'Wrong password' error whenever you try to login by using the v1 login method (the one you're trying to use), but it can be too that you don't have WhatsApp credentials (meaning you're using a phone number + country code combination which is not associated to any phones with WhatsApp in the whole world).