Constructor and Description |
---|
TokenCreator(String accountSid)
Construct a new TokenCreator.
|
Modifier and Type | Method and Description |
---|---|
Token |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
TokenCreator |
setTtl(Integer ttl)
The duration in seconds for which the generated credentials are valid.
|
public TokenCreator(String accountSid)
accountSid
- The account_sidpublic TokenCreator setTtl(Integer ttl)
ttl
- The duration in seconds the credentials are validpublic Token execute(TwilioRestClient client)
Copyright © 2011 Twilio, Inc. All Rights Reserved.