I need to get the contents of a file hosted in a GitHub repository. I would rather get a JSON response with metadata along with it. I tried a lot of urls using cURL to get the answer {"message":"Not Found"}. I just need a URL structure. If that matters, it's from an organization on GitHub. Here, what I think should work, but does not:
http://api.github.com/repos/<organization>/<repository>/git/branches/<branch>/<file>
source
share