org.kohsuke.github
Class GHMyself
java.lang.Object
org.kohsuke.github.GHPerson
org.kohsuke.github.GHUser
org.kohsuke.github.GHMyself
public class GHMyself
- extends GHUser
Represents the account that's logging into GitHub.
- Author:
- Kohsuke Kawaguchi
| Fields inherited from class org.kohsuke.github.GHPerson |
avatar_url, blog, company, created_at, email, followers, following, gravatar_id, html_url, id, location, login, name, public_gists, public_repos |
| Methods inherited from class org.kohsuke.github.GHPerson |
getAvatarUrl, getBlog, getCompany, getCreatedAt, getEmail, getFollowersCount, getFollowingCount, getGravatarId, getId, getLocation, getLogin, getName, getPublicGistCount, getPublicRepoCount, getRepositories, getRepository, iterateRepositories |
GHMyself
public GHMyself()
getEmails
public List<String> getEmails()
throws IOException
- Returns the read-only list of e-mail addresses configured for you.
This corresponds to the stuff you configure in https://github.com/settings/emails,
and not to be confused with
GHPerson.getEmail() that shows your public e-mail address
set in https://github.com/settings/profile
- Returns:
- Always non-null.
- Throws:
IOException
getPublicKeys
public List<GHKey> getPublicKeys()
throws IOException
- Returns the read-only list of all the pulic keys of the current user.
- Returns:
- Always non-null.
- Throws:
IOException
Copyright © 2012. All Rights Reserved.