title: read objects in ibm cloud object storage using api key
body: <p>I am able to read files in bucket in COS using IAM token but unable to do the same using API key.
  I have set the following key in my request header:</p>
  
  <p>Authorization: {api key}</p>
  
  <p>Should I set anything else? Note I am not using HMAC credentials.
  below code has two options one with bearer token and the other with api key created for that Cos instance specifically for the bucket.</p>
  
  <p>example code:</p>
  
  <pre><code>var request = require('request');
  </code></pre>
  
  <p>//using bearer token</p>
  
  <pre><code>var options = {
  
  uri: 'https://{endpoint}/{bucket name}',
  headers: {
  'Authorization': 'bearer {token string}',
  }
  };
  </code></pre>
  
  <p>//using api key</p>
  
  <pre><code>var options = {
  uri: 'https://{endpoint}/{bucketname}',
  headers: {
  'Authorization': '{{api key string for cos service id}',
  }
  };
  
  function callback(error, response, body) {
  console.log(error)
  console.log(response.statusCode)
  if (!error &amp;&amp; response.statusCode == 200) {
  console.log(body)
  }
  }
  
   request(options, callback);
  </code></pre>