如何使用whatsapp获取whatsapp密码?
我仍然在学习如何使用api,并且不知道使用它。我正在为代码使用sublime代码编辑器。下面是我从其中一个教程收到的示例代码。
require_once('Chat-API/src/Registration.php');
username = "6012xxxxxxx";
$debug = true;
// Create a instance of Registration class.
$r = new Registration($username, $debug);
$r->codeRequest('sms'); // could be 'voice' too`当我执行它时,我会收到以下错误:
Array ( [cc] => 60 [in] => 6012xxxxxxx [lg] => en [lc] => MY [id] => 蜀��|#b�պ�`���x [token] => IAW+aljx1hbtx0Vh/sqxJmKytyc= [mistyped] => 6 [network_radio_type] => 1 [simnum] => 1 [s] => [copiedrc] => 1 [hasinrc] => 1 [rcmatch] => 1 [pid] => 5138 [rchash] => 6557f1fa8776a69cc3427a6196467690cb85cc651b36cc7be02062470a72a742 [anhash] => 3c24581d24189c24a487cae2ef84d1c3 [extexist] => 1 [extstate] => 1 [mcc] => 502 [mnc] => 000 [sim_mcc] => 502 [sim_mnc] => 000 [method] => sms ) stdClass Object ( [login] => 6012xxxxxxx [status] => fail [reason] => old_version )
Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to request the code.' in C:\xampp\htdocs\tutorial\whatsapp-api\Chat-API\src\Registration.php:316 Stack trace: #0 C:\xampp\htdocs\tutorial\whatsapp-api\requestCode.php(33): Registration->codeRequest('sms') #1 {main} thrown in C:\xampp\htdocs\tutorial\whatsapp-api\Chat-API\src\Registration.php on line 316我也尝试使用Wart应用程序,但仍然无法获得bad_token错误的密码。
我还需要添加其他函数或应用程序吗?是否也有一个很好的教程或视频?
发布于 2017-05-23 04:35:38
我也尝试过这个库,但是得到了“失败原因=> old_version”。该图书馆自2016年8月10日起就不受支持。所以我觉得这不管用。
发布于 2017-10-25 04:45:30
试试这个:
在第22行的src/Constants.php中,改为
const WHATSAPP_VER = '2.17.242';在第27行的src/Constants.php中,改为
const WHATSAPP_USER_AGENT = 'WhatsApp/2.17.242 Android/4.3 Device/Xiaomi-HM_1SW';在第10行的src/token.php中,改为
$classesMd5 = 'ziYneeSZm5qExsEFX/AoMQ=='; // 2.17.242希望这能有所帮助。
发布于 2019-01-26 07:14:31
试试这个:
"5eItLCbGXx3CKpybxo81/A==“= _MD5_CLASSES _VERSION = "2.19.15“
https://stackoverflow.com/questions/43600971
复制相似问题