Skip to content

Bloc/github_api_client_engineering_interview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

GitHub API Client

Auth

You can create an Auth token on the personal API tokens page or using any other form of Auth provided by GitHub.

Once you have a token, you can test out the API endpoint using cURL: curl -H "Authorization: token <OAUTH-TOKEN>" https://api.github.com

Going forward, using the Auth token in the HTTP header to authenticate future requests.

If you integrate this into an app without using cURL, you'll also need a User-Agent header with your username on GitHub, e.g.

User-Agent: <USERNAME>

Endpoints

We're going to work around the endpoint that grabs your repositories.

GET /repos/:owner/:repo

Here are the docs for the endpoint

About

Interview question for building an API client for GitHub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages