Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Avatar/details from Github username #59

Open
GarySiu opened this issue Jul 4, 2016 · 1 comment
Open

Avatar/details from Github username #59

GarySiu opened this issue Jul 4, 2016 · 1 comment

Comments

@GarySiu
Copy link
Contributor

GarySiu commented Jul 4, 2016

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.

@chris-alexander
Copy link
Contributor

chris-alexander commented Jul 4, 2016

I agree, and it should match your FCC username which is also helpful.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants