public class Key extends InstanceResource<TwilioRestClient>
| Constructor and Description |
|---|
Key(TwilioRestClient client,
Map<String,Object> properties)
Instantiates a new Key
|
Key(TwilioRestClient client,
String sid)
Instantiates a new Key
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Delete the key.
|
Date |
getDateCreated()
Date/time the Key resource was created.
|
Date |
getDateUpdated()
Date/time the Key resource was last updated.
|
String |
getFriendlyName()
An optional user-defined string describing this Key.
|
String |
getSecret()
The secret of this Key.
|
String |
getSid()
A unique identifier for this Key.
|
getCastedObject, getObject, getProperty, getPropertyAsInteger, toJSON, update, updatesetRequestAccountSidpublic Key(TwilioRestClient client, String sid)
client - the Twilio clientsid - the key sidpublic Key(TwilioRestClient client, Map<String,Object> properties)
client - the Twilio clientproperties - the properties of this keypublic String getSid()
public Date getDateCreated()
public Date getDateUpdated()
public String getFriendlyName()
public String getSecret()
public boolean delete()
throws TwilioRestException
TwilioRestException - if there is an error in the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.