venomous0x / WhatsAPI

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

"There was a problem trying to request the code." #289

Open NeoGeneration opened 11 years ago

NeoGeneration commented 11 years ago

After registered and the retrieved the password using yowsup I can't get a simple example to work.

I get "There was a problem trying to request the code."

$w = new WhatsProt($fromMobNumber, $id, $nick); $w->Connect(); $w->Login(); $w->sendNickname($nick); $w->Message($toMobNumber , "This is a test"); sleep (2);

I've printed-r the array from the response and this is what I really get:

stdClass Object ( [status] => fail [reason] => incorrect [sms_length] => 6 [voice_length] => 6 )

NeoGeneration commented 11 years ago

I've successfully sent a message by using commenting some lines and harcoding the password:

    /* $this->_accountinfo = (array) $this->checkCredentials();
    if ($this->_accountinfo['status'] == 'ok') {
        $this->_password = $this->_accountinfo['pw'];
    } */

    $this->_password = 'xxxxxxxxxxxx';

So theres something wrong i guess in the check credentials?

NeoGeneration commented 11 years ago

Is this API actually working 100%? I'm finding problems everywhere... :S

shirioko commented 11 years ago

Sue them and try to get your money back

NeoGeneration commented 11 years ago

Hahaha is not about being like that, I'm just curious, I'm making some tests and things fails, just because of that... whats the actual status? I saw you commenting practically everywhere..

shirioko commented 11 years ago

If you find problems this is the place to report them, and if you need bleeding-edge functionality you'll have to check out yowsup. I don't run into problems in WhatsAPI myself, but I also don't really use it that much anymore, I'm currently using WhatsAPINet for my Windows application

ghost commented 11 years ago

'There was a problem trying to request the code.' - Sorry for the stupid question, but isn't the password anymore md5(MACMAC) ? What else is it now? Read that I need to receive a new password via yoswup but how to do that?

shirioko commented 11 years ago

md5(MACMAC) and md5(strrev(IMEI)) have been disabled for a couple of months now. Now you need to request a password through registration. First time you will need to verify using SMS before you receive your password, and after that you will get the password immediately.

IreneLing commented 11 years ago

@shirioko Sorry I'm new here and have a question...I used $w->requestCode to get a code for my number,then I received a sms,and I registered it.I send message to my brother and friends but after about 20 messages,then I unable to send anymore,and require to request for a code again.So I repeat the steps again...after 20 messages...again..but sometimes I will not receive any sms from whatsapp and unable to register,and have to wait for several hours to request for a new code again. Is there any different to request a password from yowsup and request a code through whatsappAPI? Both need to request new code after send several messages?

Thanks.

shirioko commented 11 years ago

That seems to be a known issue that I wasn't able to reproduce myself yet. Kingk100 was passionately working on it

IreneLing commented 11 years ago

@shirioko Known issue?Sounds like it's the way should be,in this case I will have to deal with it.Just curious if I miss anything related to registration before this.Thank you so much.

draffe commented 11 years ago

Hola buenas tardes me gustaria saber si ya tienen alguna solucion para el problema

que presenta la apis cuando envias entre 20 a 30 mensajes y te vuelve a solicitar

el requestcode

muchas gracias saludos

Davit21 commented 9 years ago

please help There was a problem trying to request the code