Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.12 KB

File metadata and controls

27 lines (20 loc) · 1.12 KB

github-api-js

Normal Mode

Using the HTML/CSS from the previous assignment add javascript needed to load the following:

  • Your profile: https://api.github.com/users/<username>
  • Your repos: https://api.github.com/users/<username>/repos

After loading data from the Github API, write at least the following information to the DOM:

  • name
  • blog
  • location
  • email
  • an <img> with its source as the avatar_url
  • html_url
  • for each repo owned by your user, list that repo in a <ul>

Important Note

Github api has a hard rate limit of 60 per HOUR if the user is unathenticated. Create a Personal Access Token (under personal settings). Then use basic auth where your github username is the username and the token is the password. You can find how to add the header to the ajax call here

External Links