title: Getresponse using API to fetch campaign
body: <p>This is the main link of the API for getresponse
  <a href="https://github.com/robertstaddon/GetResponse-PHP-Wrapper/blob/master/PHPwrapper/GetResponseAPI.class.php" rel="nofollow">https://github.com/robertstaddon/GetResponse-PHP-Wrapper/blob/master/PHPwrapper/GetResponseAPI.class.php</a></p>
  
  <pre><code>if(isset($_POST['Generate'])) 
  {   
      require_once dirname(__FILE__) . '/GetResponseAPI.class.php';
      $api = new GetResponse('APIKEY HERE');
      $campaigns   = (array)$api-&gt;getCampaigns();
      $campaignIDs = array_keys($campaigns);
      $campaign    = $api-&gt;getCampaignByID($campaignIDs[0]);
      var_dump($campaigns, $campaign);
  }
  </code></pre>
  
  <p>This is the HTML code which is on the same page with the PHP.</p>
  
  <pre><code>&lt;form method="post" action=""&gt;
  &lt;select name="Campaign" id="Campaign"&gt;
  &lt;?php foreach ( $campaign as $campaignID =&gt; $value ) { ?&gt;
  &lt;option value="&lt;?php echo $campaignID;?&gt;"&gt;&lt;?php echo $value;?&gt;&lt;/option&gt;    
  &lt;?php } ?&gt;
  &lt;/select&gt;
  &lt;input type="submit" value="Generate" name="Generate" id="Generate"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The error i'm getting at the top of the same page is the following :
  array(0) { } NULL</p>