title: How to get a password for whatsapp API (PHP)?
body: <p>I use this code </p>
  
  <pre><code>#!/usr/bin/php
  &lt;?php
  require_once('whatsapp_whatsapi_config.php');
  
  $destinationPhone = 'xxxx';
  
  $w = new WhatsProt($userPhone,0, $userName, $debug);
  $w-&gt;Connect();
  $w-&gt;LoginWithPassword($password);
  $message = 'WhatsApp';
  $w-&gt;Message($destinationPhone, $message);
  echo "Mensaje enviado exitosamente";
  ?&gt;
  </code></pre>
  
  <p>and this error displayed</p>
  
  <pre><code>  PHP Fatal error:  Uncaught exception 'LoginFailureException' in       /var/www/html/whats/src/whatsprot.class.php:2274
  Stack trace:
  /var/www/html/whats/src/whatsprot.class.php(552): WhatsProt-&gt;doLogin()
  /var/www/html/whats/whatsapp_whatsapi_send.php(13): WhatsProt-&gt;loginWithPassword('Mu7q0hq/vRSLFCU...')
  {main}
    thrown in /var/www/html/whats/src/whatsprot.class.php on line 2274
  </code></pre>
  
  <p>I tried use the WART app but the password generated is incorrect</p>