Open GarySiu opened 8 years ago
We should ask for a user's github username. We can easily get their details from this endpoint:
https://api.github.com/users/GarySiu
Which gives us a JSON response like this:
{ "login": "GarySiu", "id": 13659533, "avatar_url": "https://avatars.githubusercontent.com/u/13659533?v=3", "gravatar_id": "", "url": "https://api.github.com/users/GarySiu", "html_url": "https://github.com/GarySiu", "followers_url": "https://api.github.com/users/GarySiu/followers", "following_url": "https://api.github.com/users/GarySiu/following{/other_user}", "gists_url": "https://api.github.com/users/GarySiu/gists{/gist_id}", "starred_url": "https://api.github.com/users/GarySiu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GarySiu/subscriptions", "organizations_url": "https://api.github.com/users/GarySiu/orgs", "repos_url": "https://api.github.com/users/GarySiu/repos", "events_url": "https://api.github.com/users/GarySiu/events{/privacy}", "received_events_url": "https://api.github.com/users/GarySiu/received_events", "type": "User", "site_admin": false, "name": "Gary Siu", "company": null, "blog": null, "location": null, "email": null, "hireable": null, "bio": null, "public_repos": 44, "public_gists": 0, "followers": 6, "following": 7, "created_at": "2015-08-05T11:58:20Z", "updated_at": "2016-07-03T11:09:48Z" }
This doesn't require oauth or any kind of authentication. Other potentially interesting fields from the response include their public email, github url, hireable status and company.
I agree, and it should match your FCC username which is also helpful.
We should ask for a user's github username. We can easily get their details from this endpoint:
https://api.github.com/users/GarySiu
Which gives us a JSON response like this:
This doesn't require oauth or any kind of authentication. Other potentially interesting fields from the response include their public email, github url, hireable status and company.