I downloaded the latest code from here and tried to request the code using $w->codeRequest('sms');.
But I am getting the following error:
Object ( [status] => fail [reason] => old_version )
Notice: Undefined property: stdClass::$param in F:\xampp\htdocs\WhatsAPI-master\src\whatsprot.class.php on line 357
Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to request the code.' in F:\xampp\htdocs\WhatsAPI-master\src\whatsprot.class.php:359 Stack trace: #0 F:\xampp\htdocs\WhatsAPI-master\examples\exampleRegister.php(49): WhatsProt->codeRequest('sms') #1 {main} thrown in F:\xampp\htdocs\WhatsAPI-master\src\whatsprot.class.php on line 359.
I downloaded the latest code from here and tried to request the code using $w->codeRequest('sms');. But I am getting the following error:
Object ( [status] => fail [reason] => old_version ) Notice: Undefined property: stdClass::$param in F:\xampp\htdocs\WhatsAPI-master\src\whatsprot.class.php on line 357
Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to request the code.' in F:\xampp\htdocs\WhatsAPI-master\src\whatsprot.class.php:359 Stack trace: #0 F:\xampp\htdocs\WhatsAPI-master\examples\exampleRegister.php(49): WhatsProt->codeRequest('sms') #1 {main} thrown in F:\xampp\htdocs\WhatsAPI-master\src\whatsprot.class.php on line 359.
Please help me out with this issue.
Thanks