title: Bitbucket API read RAW file from branch with Access Code
body: <p>I have an issue accessing a branch on Private Bitbucket Repo using an Access Token.</p>
  
  <p>Works fine using master, but I have no idea how to access a branch.</p>
  
  <p>For example:
  Accessing master is OK:</p>
  
  <pre><code>https://api.bitbucket.org/2.0/repositories/user/repo/src/master/template.json?&amp;access_token=gHmDP4e4XeBQUrmFXTGWPC4qVZEfv_JGZnXt61NGfEH2O4OeiYGHeCL0a8rwLVFasjJ0UBHcne-r2myBsGk=
  </code></pre>
  
  <p>Tried the following to access branch feature/project/code:</p>
  
  <pre><code>https://api.bitbucket.org/2.0/repositories/user/repo/src/master/template.json?at=refs%2Fheads%2Ffeature%2Fproject%2Fcode&amp;access_token=gHmDP4e4XeBQUrmFXTGWPC4qVZEfv_JGZnXt61NGfEH2O4OeiYGHeCL0a8rwLVFasjJ0UBHcne-r2myBsGk=
  https://api.bitbucket.org/2.0/repositories/user/repo/src/master/template.json?at=refs/heads/feature/project/code&amp;access_token=gHmDP4e4XeBQUrmFXTGWPC4qVZEfv_JGZnXt61NGfEH2O4OeiYGHeCL0a8rwLVFasjJ0UBHcne-r2myBsGk=
  https://api.bitbucket.org/2.0/repositories/user/repo/src/feature/project/code/template.json?access_token=gHmDP4e4XeBQUrmFXTGWPC4qVZEfv_JGZnXt61NGfEH2O4OeiYGHeCL0a8rwLVFasjJ0UBHcne-r2myBsGk=
  </code></pre>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks</p>