2017-04-13 40 views
1

如何檢查WhatsApp電話號碼是否可用?使用PHP檢查WhatsApp號碼

這是否有一個工作示例?

我將使用PHP或任何服務器端代碼來檢查數字並獲取最後看到的數據。

我得到這個錯誤與mgp25的API

Array ([cc] => 90 [in] => 5418444444 [lg] => tr [lc] => TR [id] => !`mè)lv���Լ,�!�0� [token] => VXqFr1tQChP8xtTzz4U2jxV8KWU= [mistyped] => 6 [network_radio_type] => 1 [simnum] => 1 [s] => [copiedrc] => 1 [hasinrc] => 1 [rcmatch] => 1 [pid] => 6840 [rchash] => 2f7edc328bc9f21ac98a8eb3d323dd1a7c104e7b0f49c0ffe66f9c2bb0ca9207 [anhash] => f4f4c4784c6166b69329839f38176700 [extexist] => 1 [extstate] => 1 [mcc] => 286 [mnc] => 000 [sim_mcc] => 286 [sim_mnc] => 000 [method] => sms) stdClass Object ([login] => 90544444444 [status] => fail [reason] => bad_token) 
Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to request the code.' in /Library/WebServer/Documents/wp/src/Registration.php:316 Stack trace: #0 /Library/WebServer/Documents/wp/examples/exampleRegister.php(44): Registration->codeRequest('sms') #1 {main} thrown in /Library/WebServer/Documents/wp/src/Registration.php on line 316 

回答

1

您可以使用此WhatsApp的非官方API WhatsAPI。所有文檔,請here

+0

它工作嗎?因爲我使用它並得到old_version錯誤 – sddsa

+0

您需要在這裏查看更新日誌(https://github.com/mgp25/Chat-API/wiki/WhatsApp-incoming-updates),並在此處報告問題(https:/ /github.com/tgalal/yowsup/issues/1534) – cczak

+0

isee是一個不好的令牌錯誤 – sddsa