title: How to access GitLab issues using CURL?
body: <p>I'd like to get a list of the issues for the project <code>YYYYYY</code> and a username <code>XXXXXX</code>.</p>
  
  <pre><code>curl --header "PRIVATE-TOKEN: myownprivatetoken" "https://gitlab.com/api/v3/projects/YYYYYY/issues"
  
  curl --header "PRIVATE-TOKEN: myownprivatetoken" --header "SUDO: XXXXXX" "https://gitlab.com/api/v3/projects/YYYYYY/issues"
  
  curl --header "PRIVATE-TOKEN: myownprivatetoken" "https://gitlab.com/api/v3/XXXXXX/projects/YYYYYY/issues"
  </code></pre>
  
  <p>But they only return:</p>
  
  <pre><code>{"message":"404 Project Not Found"}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;html&gt;&lt;body&gt;You are being &lt;a href="https://gitlab.com/users/sign_in"&gt;redirected&lt;/a&gt;.&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>It seems to me that I have misinterpreted the API docs at <a href="http://doc.gitlab.com/ce/api/issues.html" rel="noreferrer">http://doc.gitlab.com/ce/api/issues.html</a> and <a href="http://doc.gitlab.com/ce/api/README.html" rel="noreferrer">http://doc.gitlab.com/ce/api/README.html</a> .</p>
  
  <p>So what am I doing wrong?</p>