public class TaskRouterWorkerCapability extends TaskRouterCapability
CapabilityToken.DomainException
Constructor and Description |
---|
TaskRouterWorkerCapability(String accountSid,
String authToken,
String workspaceSid,
String workerSid)
Create a new Capability object to authorize worker clients to interact
with the TaskRouter service.
|
Modifier and Type | Method and Description |
---|---|
void |
allowActivityUpdates()
Allow a worker to update its own activity status.
|
void |
allowReservationUpdates()
Allow a worker to update assigned reservations.
|
addPolicy, addPolicy, allow, allowDelete, allowDeleteSubresources, allowFetchSubresources, allowTaskReservationUpdates, allowUpdates, allowUpdatesSubresources, allowWorkerActivityUpdates, allowWorkerFetchAttributes, deny, generateToken, generateToken
public TaskRouterWorkerCapability(String accountSid, String authToken, String workspaceSid, String workerSid)
accountSid
- Account to authorize actions forauthToken
- Auth token for the account. Used to sign tokens and will not
be included in the generated tokens.workspaceSid
- Workspace to authorize tokens for.workerSid
- Worker to create tokens for.Copyright © 2011 Twilio, Inc. All Rights Reserved.