title: Using GitHub list-issues-for-a-repository API
body: <p>When you go to GitHub, under Issues, it pulls up all the open issues as an HTML page. We'd like to implement a dashboard showing all the issues in a repository, grouped by labels, including those issues which are not correctly labelled.</p>
  
  <p>This is the corresponding <a href="https://developer.github.com/v3/issues/#list-issues-for-a-repository" rel="nofollow noreferrer">list-issues-for-a-repository API</a>.</p>
  
  <p>While I was initially using jQuery and Javascript, am now using PHP for a proof-of-concept because its built-in session handling lets me use the same page to login, have GitHub authenticate &amp; callback, and continue. But it doesn't matter to me, any language is okay.</p>
  
  <p>I've managed to get access to the GitHub API via OAUTH2, but when I get the list of repositories via <code>https://api.github.com/orgs/{org}/repos</code> it comes up as an empty array.</p>
  
  <p>Because the <code>/orgs/{org}/repos</code> API returns an empty array, of course the corresponding <code>/repos/{org}/{repo}/issues</code> API will return an error.</p>
  
  <p><strong>Edit</strong>: See <a href="https://stackoverflow.com/questions/58964401">this followup</a> for a solution! Glad I finally got it working!</p>