用PHP检查WhatsApp数字

时间:2017-04-13 22:34:10

标签: php node.js whatsapp

如果WhatsApp电话号码可用,我该如何查询?

这是否有一个有效的例子?

我将使用PHP或任何服务器端代码来检查数字并获取最后看到的数据。

我用mgp25 s 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 个答案:

答案 0 :(得分:1)

您可以使用此WhatsApp非官方API WhatsAPI。所有文档均可用here