code: function make_basic_auth_header(api_key) {
    // Heroku Basic Auth header comprises an empty username field and the API key
    var str = ":" + api_key;
    var val = new Buffer(str).toString('base64');
    var header = {"Authorization":"Basic " + val};
  
    return header;
  }
docs: /*
  make_basic_auth_header()
  
  Generate the HTTP Basic Auth header expected by the Heroku API
  
  <api_key> Heroku account API key.