title: not able to connect to bigcommerce api
body: <p>i am facing a problem while i am trying to connect to my bigcommerce account through the bigcommerce api....
  i followed the following guidelines according to this url:</p>
  
  <ol>
  <li><p>i downloaded the bigcommerce.php file from here
  <a href="https://raw.github.com/bigcommerce/bigcommerce-api-php/master/bigcommerce.php" rel="nofollow">https://raw.github.com/bigcommerce/bigcommerce-api-php/master/bigcommerce.php</a></p></li>
  <li><p>then included this file into my index.php file</p></li>
  <li><p>then i tried to execute the following code in my index.php file</p>
  
  <pre><code> require 'bigcommerce.php';
      use Bigcommerce\Api\Client as Bigcommerce;
  </code></pre>
  
  <p>Bigcommerce::configure(array(
      'store_url' => 'storeurl',
      'username' => 'admin',
      'api_key' => '4581223546f2bf73840d84b4802cab039f249404'
      ));</p>
  
  <pre><code>Bigcommerce::setCipher('RC4-SHA');
  </code></pre>
  
  <p>Bigcommerce::verifyPeer(false);</p>
  
  <p>$products = Bigcommerce::getProducts();</p>
  
  <p>foreach($products as $product) {
      echo $product->name;
      echo $product->price;
  }</p></li>
  </ol>
  
  <p>but this did not worked for me. it was showing following warning</p>
  
  <p>Warning: Invalid argument supplied for foreach() in C:\wamp\www\bigcommerce\index.php on line 16</p>
  
  <p>then i followed following steps:</p>
  
  <ol>
  <li><p>i downloaded the ZIP file for the api from here <a href="https://github.com/bigcommerce/bigcommerce-api-php/archive/master.zip" rel="nofollow">https://github.com/bigcommerce/bigcommerce-api-php/archive/master.zip</a></p></li>
  <li><p>extrated that file into my project folder say myfolder i.e directory for extracted file is myfolder/bigcommerce-api-php-master/</p></li>
  <li><p>then i included the myfolder/bigcommerce-api-php-master/bigcommerce.php</p></li>
  </ol>
  
  <p>and tried to execute following code....</p>
  
  <pre><code>&lt;?php
   require 'bigcommerce-api-php-master/bigcommerce.php';
      use Bigcommerce\Api\Client as Bigcommerce;
  
      Bigcommerce::configure(array(
      'store_url' =&gt; 'https://store-atka90u.mybigcommerce.com/api/v2/',
      'username' =&gt; 'admin',
      'api_key' =&gt; '4581223546f2bf73840d84b4802cab039f249404'
      ));
  
      Bigcommerce::setCipher('RC4-SHA');
  Bigcommerce::verifyPeer(false);
  
  $products = Bigcommerce::getProducts();
  
  foreach($products as $product) {
      echo $product-&gt;name;
      echo $product-&gt;price;
  }
  ?&gt;
  </code></pre>
  
  <p>but its showing again the same warning even after i added 2 products already in my account.</p>
  
  <p>Warning: Invalid argument supplied for foreach() in C:\wamp\www\bigcommerce\index.php on line 16</p>
  
  <p>any kind of help will be appriciated.....
  plzzzz help.... it is badly needed....</p>