title: Meteor basic HTTP authentication
body: <p>Need to connect to an <a href="http://docs.vogogo.com/payment_api/v3#authentication" rel="nofollow">external api: Vogogo</a>.The hard part is converting the curl example into a valid Meteor HTTP.get call. Now here is the code I came up with </p>
  
  <pre><code>apiversionVogogo = 'v3';
  
  Vogogo.listAllCustomers = function() {
      HTTP.get('https://api.vogogo.com/' + apiversionVogogo + '/customers', {
              headers: {
                  'Authorization': {
                      user: clientID,
                      clientsecret: apisecret
                  }
              }
          },
          function(error, result) {
              if (error) {
                  console.log(error);
              } else {
                  console.log(result);
              }
          });
      return;
  }
  </code></pre>
  
  <p>The response is an error message:</p>
  
  <pre><code>error_message: 'HTTP Authorization expected"'
  </code></pre>
  
  <p>Can someone help me rewrite this basic HTTP authentication into a default format? In the docs an example is given with CURL.</p>
  
  <pre><code>curl -X GET 'https://api.vogogo.com/v3/customers' \
   --user clientsecret: \
   -H "Content-Type: application/json"
  </code></pre>