public class ApiService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ASSEMBLA_ROLE_MEMBER |
static String |
ASSEMBLA_ROLE_OWNER |
static String |
ASSEMBLA_ROLE_WATCHER |
| Constructor and Description |
|---|
ApiService() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createAuthorizationCodeURL(String clientId)
Creates Assembla URL authorization by code using provided clientId.
|
static SpaceAssembla |
getSpace(String access_token,
String spaceId) |
static UserAssembla[] |
getSpaceUsers(String access_token,
String spaceId) |
static TokenAssembla |
getTokenByAuthorizationCode(String code,
String clientId,
String clientSecret)
After getting the code request for access (and refresh) token
|
static UserAssembla |
getUserByToken(String access_token) |
static UserRoleAssembla[] |
getUserRoles(String access_token,
String spaceId) |
static String |
postRefreshAccessToken(String refresh_token,
String clientId,
String clientSecret)
Refresh access token (avoid expiration)
|
public static final String ASSEMBLA_ROLE_OWNER
public static final String ASSEMBLA_ROLE_MEMBER
public static final String ASSEMBLA_ROLE_WATCHER
public static String createAuthorizationCodeURL(String clientId)
clientId - - application ID for Jenkins instancepublic static TokenAssembla getTokenByAuthorizationCode(String code, String clientId, String clientSecret)
code - clientId - clientSecret - public static String postRefreshAccessToken(String refresh_token, String clientId, String clientSecret)
refresh_token - clientId - clientSecret - public static UserAssembla getUserByToken(String access_token)
public static UserAssembla[] getSpaceUsers(String access_token, String spaceId)
public static SpaceAssembla getSpace(String access_token, String spaceId)
public static UserRoleAssembla[] getUserRoles(String access_token, String spaceId)
Copyright © 2004-2012. All Rights Reserved.