public class OAuthService extends GitHubService
ACCEPT_FULL, ACCEPT_HTML, ACCEPT_RAW, ACCEPT_TEXT, client| Constructor and Description |
|---|
OAuthService()
Create OAuth service
|
OAuthService(GitHubClient client)
Create OAuth service
|
| Modifier and Type | Method and Description |
|---|---|
Authorization |
addScopes(int id,
java.util.Collection<java.lang.String> scopes)
Add scopes to authorization
|
Authorization |
createAuthorization(Authorization authorization)
Create authorization
|
void |
deleteAuthorization(int id)
Delete authorization with given id
|
Authorization |
getAuthorization(int id)
Get authorization with given id
|
java.util.List<Authorization> |
getAuthorizations()
Get all authorizations for currently authenticated user
|
Authorization |
removeScopes(int id,
java.util.Collection<java.lang.String> scopes)
Remove scopes from authorization
|
Authorization |
setScopes(int id,
java.util.Collection<java.lang.String> scopes)
Set scopes for authorization
|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepositorypublic OAuthService()
public OAuthService(GitHubClient client)
client - public java.util.List<Authorization> getAuthorizations() throws java.io.IOException
java.io.IOExceptionpublic Authorization getAuthorization(int id) throws java.io.IOException
id - java.io.IOExceptionpublic void deleteAuthorization(int id)
throws java.io.IOException
id - java.io.IOExceptionpublic Authorization createAuthorization(Authorization authorization) throws java.io.IOException
authorization - java.io.IOExceptionpublic Authorization addScopes(int id, java.util.Collection<java.lang.String> scopes) throws java.io.IOException
id - scopes - java.io.IOExceptionpublic Authorization removeScopes(int id, java.util.Collection<java.lang.String> scopes) throws java.io.IOException
id - scopes - java.io.IOExceptionpublic Authorization setScopes(int id, java.util.Collection<java.lang.String> scopes) throws java.io.IOException
id - scopes - java.io.IOException