public class Workspace extends NextGenInstanceResource<TwilioTaskRouterClient>
| Constructor and Description |
|---|
Workspace(TwilioTaskRouterClient client)
Instantiates a workspace.
|
Workspace(TwilioTaskRouterClient client,
Map<String,Object> properties)
Instantiates a workspace.
|
Workspace(TwilioTaskRouterClient client,
String sid)
Instantiates a workspace.
|
| Modifier and Type | Method and Description |
|---|---|
Activity |
createActivity(List<org.apache.http.NameValuePair> params)
Creates an
Activity. |
Activity |
createActivity(Map<String,String> params)
Creates an
Activity. |
Task |
createTask(List<org.apache.http.NameValuePair> params)
Creates a
Task. |
Task |
createTask(Map<String,String> params)
Creates a
Task. |
Task |
createTask(String workflowSid,
Map<String,String> attributes,
Integer priority,
Integer timeout)
Creates a
Task. |
TaskQueue |
createTaskQueue(List<org.apache.http.NameValuePair> params)
Creates a
TaskQueue. |
TaskQueue |
createTaskQueue(Map<String,String> params)
Creates a
TaskQueue. |
Worker |
createWorker(List<org.apache.http.NameValuePair> params)
Creates a
Worker. |
Worker |
createWorker(Map<String,String> params)
Creates a
Worker. |
Worker |
createWorker(String friendlyName,
Map<String,String> attributes,
String activitySid)
Creates a
Worker. |
Workflow |
createWorkflow(List<org.apache.http.NameValuePair> params)
Creates a
Workflow. |
Workflow |
createWorkflow(Map<String,String> params)
Creates a
Workflow. |
String |
getAccountSid()
The ID of the
Account that owns this Workspace. |
ActivityList |
getActivities()
Retrieves the
ActivityList for this Workspace |
ActivityList |
getActivities(Map<String,String> filters)
Retrieves the
ActivityList for this Workspace |
Activity |
getActivity(String activitySid)
Retrieves an
Activity from this Workspace by ID. |
Date |
getDateCreated()
The date and time this Workspace was created.
|
Date |
getDateUpdated()
The date and time this Workspace was last updated.
|
String |
getDefaultActivityName()
The human-readable name of the default activity.
|
String |
getDefaultActivitySid()
The ID of the Activity that will be used when new Workers are created in this Workspace.
|
Event |
getEvent(String eventSid)
Retrieves an
Event from this Workspace |
String |
getEventCallbackUrl()
An optional URL where the Workspace will publish events.
|
EventList |
getEvents()
|
EventList |
getEvents(Calendar startDate,
Calendar endDate,
Integer minutes,
Map<String,String> filters)
|
EventList |
getEvents(Map<String,String> filters)
|
String |
getFriendlyName()
A human-readable description of this Workspace.
|
String |
getSid()
The unique ID for this Workspace.
|
WorkspaceStatistics |
getStatistics()
Get workspace statistics.
|
WorkspaceStatistics |
getStatistics(Map<String,String> filters)
Get workspace statistics.
|
WorkspaceStatistics |
getStatistics(StatisticsQueryBuilder queryBuilder)
Get workspace statistics.
|
Task |
getTask(String taskSid)
Retrieves a
Task from this Workspace. |
TaskQueue |
getTaskQueue(String taskQueueSid)
Retrieves a
TaskQueue from a Workspace |
TaskQueueList |
getTaskQueues()
Retrieves the
TaskQueueList for this Workspace |
TaskQueueList |
getTaskQueues(Map<String,String> filters)
Retrieves the
TaskQueueList for this Workspace |
TaskList |
getTasks()
|
TaskList |
getTasks(Map<String,String> filters)
|
String |
getTimeoutActivityName()
The human-readable name of the timeout activity.
|
String |
getTimeoutActivitySid()
|
Worker |
getWorker(String workerSid)
Retrieves a
Worker from a Workspace |
WorkerList |
getWorkers()
Retrieves the
WorkerList for this Workspace |
WorkerList |
getWorkers(Map<String,String> filters)
Retrieves the
WorkerList for this Workspace |
Workflow |
getWorkflow(String workflowSid)
Retrieves a
Workflow from a Workspace |
WorkflowList |
getWorkflows()
Retrieves the
WorkflowList for this Workspace |
WorkflowList |
getWorkflows(Map<String,String> filters)
Retrieves the
WorkflowList for this Workspace |
getCastedObject, getObject, getProperty, toJSON, update, updatesetRequestAccountSidpublic Workspace(TwilioTaskRouterClient client)
client - the clientpublic Workspace(TwilioTaskRouterClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic Workspace(TwilioTaskRouterClient client, String sid)
client - the clientsid - the sidpublic String getAccountSid()
Account that owns this Workspace.public ActivityList getActivities()
ActivityList for this WorkspaceActivityListpublic ActivityList getActivities(Map<String,String> filters)
ActivityList for this WorkspaceActivityListpublic Activity getActivity(String activitySid)
Activity from this Workspace by ID.public Activity createActivity(Map<String,String> params) throws TwilioRestException
Activity.params - the params listTwilioRestExceptionpublic Activity createActivity(List<org.apache.http.NameValuePair> params) throws TwilioRestException
Activity.params - the params listTwilioRestExceptionpublic Date getDateCreated()
public Date getDateUpdated()
public String getDefaultActivityName()
public String getDefaultActivitySid()
public EventList getEvents(Calendar startDate, Calendar endDate, Integer minutes, Map<String,String> filters)
EventListpublic String getEventCallbackUrl()
public String getFriendlyName()
public String getSid()
public Task createTask(Map<String,String> params) throws TwilioRestException
Task.params - the params listTwilioRestExceptionpublic Task createTask(List<org.apache.http.NameValuePair> params) throws TwilioRestException
Task.params - the params listTwilioRestExceptionpublic Task createTask(String workflowSid, Map<String,String> attributes, Integer priority, Integer timeout) throws TwilioRestException
Task.workflowSid - workflow sidattributes - attributespriority - priority for the tasktimeout - timeout for the taskTwilioRestExceptionpublic String getTimeoutActivityName()
public String getTimeoutActivitySid()
Activity that will be assigned to a
Worker when a
Task reservation times out without a response.public WorkerList getWorkers()
WorkerList for this WorkspaceWorkerListpublic WorkerList getWorkers(Map<String,String> filters)
WorkerList for this WorkspaceWorkerListpublic Worker createWorker(Map<String,String> params) throws TwilioRestException
Worker.params - the params listTwilioRestExceptionpublic Worker createWorker(List<org.apache.http.NameValuePair> params) throws TwilioRestException
Worker.params - the params listTwilioRestExceptionpublic Worker createWorker(String friendlyName, Map<String,String> attributes, String activitySid) throws TwilioRestException
Worker.friendlyName - the friendly name of the workerattributes - the attributes of the workeractivitySid - the default activity for the workerTwilioRestExceptionpublic WorkflowList getWorkflows()
WorkflowList for this WorkspaceWorkflowListpublic WorkflowList getWorkflows(Map<String,String> filters)
WorkflowList for this WorkspaceWorkflowListpublic Workflow createWorkflow(Map<String,String> params) throws TwilioRestException
Workflow.params - the params listTwilioRestExceptionpublic Workflow createWorkflow(List<org.apache.http.NameValuePair> params) throws TwilioRestException
Workflow.params - the params listTwilioRestExceptionpublic TaskQueue getTaskQueue(String taskQueueSid)
TaskQueue from a Workspacepublic TaskQueueList getTaskQueues()
TaskQueueList for this WorkspaceTaskQueueListpublic TaskQueueList getTaskQueues(Map<String,String> filters)
TaskQueueList for this WorkspaceTaskQueueListpublic TaskQueue createTaskQueue(Map<String,String> params) throws TwilioRestException
TaskQueue.params - the params listTwilioRestExceptionpublic TaskQueue createTaskQueue(List<org.apache.http.NameValuePair> params) throws TwilioRestException
TaskQueue.params - the params listTwilioRestExceptionpublic WorkspaceStatistics getStatistics()
public WorkspaceStatistics getStatistics(StatisticsQueryBuilder queryBuilder)
queryBuilder - query builder which contains all parameters for the stats query requestpublic WorkspaceStatistics getStatistics(Map<String,String> filters)
filters - the filtersCopyright © 2011 Twilio, Inc. All Rights Reserved.