title: Download zip from github and bitbucket private repo in node
body: <p>For gitlab I can download a private repo in node by simple using making an http request to:</p>
  
  <pre><code>"https://" + host + "/" + group + "/" + project + "/repository/archive.zip\?ref\=" + branch + "\&amp;\private_token\=" + private_token;
  </code></pre>
  
  <p>Is this also possible for github and bitbucket?</p>
  
  <p>I find a lot of curl scripts which use username and password to authenticate.</p>
  
  <p>Can I also do this simply with a private token (as in gitlab)?</p>
  
  <p>The repositories are private!</p>