我正在看这段代码:https ://github.com/venomous0x/WhatsAPI
在页面上:/src/php/EXAMPLES.php
我进行了以下更改(我认为这是我需要修改的全部内容。我显然在此示例中使用了不同的 IMEI 号码和手机号码):
$userPhone = '447799999999'; # Telephone number including the country code without '+' or '00'.
$userIdentity = '98B898B898B8'; # This is tipically the IMEI number.
# If you are using an iOS device you should input your WLAN MAC address.
$userName = 'John Doe'; # This is the username displayed by WhatsApp clients.
$destinationPhone = '447788888888'; # Destination telephone number including the country code without '+' or '00'.
# For groups: [phone number]-[group id].
$debug = TRUE;
$w->requestCode('sms', 'GB', 'en');
$w->registerCode('123456');
但是在我的服务器上导航到这个 example.php 页面时,我收到以下错误:
致命错误:未捕获的异常“异常”,消息“尝试请求代码时出现问题。” 在 /whatsapp/src/php/whatsprot.class.php:1174 堆栈跟踪:#0 /whatsapp/src/php/EXAMPLES.php(49): WhatsProt->requestCode('sms', 'GB', 'en' ) #1 {main} 在第 1174 行的 /whatsapp/src/php/whatsprot.class.php 中抛出
我只是想知道我要去哪里错了,有人能解释一下吗?谢谢