Class ProfileSource
java.lang.Object
io.github.jbastgen.stemma.app.avatar.ProfileSource
The real
Avatars.Source (feature 59): github.com and api.github.com, gravatar.com and api.gravatar.com, through the proxy of
the network settings. What is sent: a repository and a commit id to GitHub, a login to github.com, the SHA-256 hash of an address to
Gravatar; never an e-mail address, a name or anything else about the user.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongithubLoginOfCommit(String owner, String repo, String commit) byte[]githubPicture(String login, int pixels) byte[]gravatarPicture(String hash, int pixels) gravatarProfile(String hash)
-
Constructor Details
-
ProfileSource
public ProfileSource()
-
-
Method Details
-
githubLoginOfCommit
public String githubLoginOfCommit(String owner, String repo, String commit) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
githubPicture
- Throws:
IOExceptionInterruptedException
-
gravatarPicture
- Throws:
IOExceptionInterruptedException
-
gravatarProfile
- Throws:
IOExceptionInterruptedException
-