public class WorkspacesClient extends AbstractClient
apiKey, BASE_URL, service| Constructor and Description |
|---|
WorkspacesClient(String apiKey) |
WorkspacesClient(String apiKey,
int connectionTimeout,
int readTimeout) |
| Modifier and Type | Method and Description |
|---|---|
Projects |
getProjects(long workspaceId) |
Projects |
getProjects(long workspaceId,
boolean archived) |
Tags |
getTags(long workspaceId) |
Tasks |
getTasks(long workspaceId,
long assigneeId) |
Tasks |
getTasks(long workspaceId,
long assigneeId,
Long projectId) |
Tasks |
getTasks(long workspaceId,
long assigneeId,
Long projectId,
boolean include_archived) |
Users |
getUsers(long workspaceId) |
Workspaces |
getWorkspaces()
Retrieve all workspaces visible by the user associated with the current api key
|
protected com.sun.jersey.api.client.ClientResponse |
request(String method,
String url,
com.sun.jersey.core.util.MultivaluedMapImpl queryParams,
com.sun.jersey.core.util.MultivaluedMapImpl data) |
Workspace |
updateWorkspace(long workspaceId,
String name)
Change the name of a workspace
|
public WorkspacesClient(String apiKey)
public WorkspacesClient(String apiKey, int connectionTimeout, int readTimeout)
apiKey - your Asana API keyconnectionTimeout - the connection timeout in MILLISECONDSreadTimeout - the read timeout in MILLISECONDSpublic Workspaces getWorkspaces()
public Workspace updateWorkspace(long workspaceId, String name)
workspaceId - the id of the workspace to altername - the new name for the workspacepublic Users getUsers(long workspaceId)
public Tasks getTasks(long workspaceId, long assigneeId)
public Tasks getTasks(long workspaceId, long assigneeId, Long projectId, boolean include_archived)
public Projects getProjects(long workspaceId)
public Projects getProjects(long workspaceId, boolean archived)
public Tags getTags(long workspaceId)
protected com.sun.jersey.api.client.ClientResponse request(String method, String url, com.sun.jersey.core.util.MultivaluedMapImpl queryParams, com.sun.jersey.core.util.MultivaluedMapImpl data)
request in class AbstractClientCopyright © 2015. All rights reserved.