whatsapp apiを使用してwhatsappパスワードを取得するには?WhatsappからWhatsappパスワードを取得するapi
私はまだAPIを使用して学んで、それを使用することを考えていません。コード用にコードエディタsublime
を使用しています。以下は、チュートリアルの1つから受け取ったサンプルコードです。
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
のエラーでパスワードを取得できませんがあります私が追加する必要のある他の機能やアプリケーション。これには良いチュートリアルやビデオもありますか?
やあ、 はあなたのWhatsAppパスワード別の方法を取得するために管理したのですか? –