我在看这段代码:https://github.com/venomous0x/WhatsAPIWhatsAPI(的WhatsApp) - 异常错误
在页面:/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我的服务器上时,我收到以下错误:
Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to request the code.' in /whatsapp/src/php/whatsprot.class.php:1174 Stack trace: #0 /whatsapp/src/php/EXAMPLES.php(49): WhatsProt->requestCode('sms', 'GB', 'en') #1 {main} thrown in /whatsapp/src/php/whatsprot.class.php on line 1174
我只想知道我要出错的地方,谁能说出一些光?谢谢
你好这里是代码? https://github.com/venomous0x/WhatsAPI – 2015-08-19 12:06:53