title: whatsapp api request code not executing and not returning a request code
body: <p>I am trying to implement the <a href="https://github.com/venomous0x/WhatsAPI" rel="noreferrer">whatsAPI</a> but I always get this error <br/>
  "<em>There was a problem trying to request the code</em>".<br/><br/>
  Here is the full error that is showing in my console: </p>
  
  <pre><code>####start of error notice#####
  
  [12-Mar-2013 22:44:59] PHP Notice:  Undefined property: stdClass::$reason in /Applications/MAMP/htdocs/whatsapp/test/whatsprot.class.php on line 1268
  [12-Mar-2013 22:44:59] PHP Fatal error:  Uncaught exception 'Exception' with message 'There was a problem trying to request the code.' in /Applications/MAMP/htdocs/whatsapp/test/whatsprot.class.php:1269
  Stack trace:
  #0 /Applications/MAMP/htdocs/whatsapp/test/test.php(36): WhatsProt-&gt;checkCredentials()
  #1 {main}
    thrown in /Applications/MAMP/htdocs/whatsapp/test/whatsprot.class.php on line 1269
  
  ####end of error notice#####
  </code></pre>
  
  <p>these are my credentials for initializing the class</p>
  
  <pre><code>$userPhone = '8801770648732';       
  $userIdentity = '352264050503669';                                               
  $userName = 'shishir';          
  $destinationPhone = '8801713206053';                                                
  $debug = TRUE;
  $whatsapp = new WhatsProt($userPhone, $userIdentity, $userName, $debug);
  </code></pre>
  
  <p>and for the requesting a requestCode </p>
  
  <pre><code>$service_type = "sms";    
  $country_code = "BD";    
  $language_code = "en";    
  $request_code = $whatsapp-&gt;requestCode($service_type, $country_code, $language_code);    
  </code></pre>
  
  <p>Every time it stuck at the  <code>$whatsapp-&gt;requestCode</code> with that error. <br/>I'm not sure what i am doing wrong . <br/>Can anyone help me on this?</p>