public class CredentialCreator extends Creator<Credential>
Constructor and Description |
---|
CredentialCreator(String pathCredentialListSid,
String username,
String password)
Construct a new CredentialCreator.
|
CredentialCreator(String pathAccountSid,
String pathCredentialListSid,
String username,
String password)
Construct a new CredentialCreator.
|
Modifier and Type | Method and Description |
---|---|
Credential |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
create, createAsync, createAsync
public CredentialCreator(String pathCredentialListSid, String username, String password)
pathCredentialListSid
- The unique id that identifies the credential
list to include the created credentialusername
- The username for this credential.password
- The password will not be returned in the response.public CredentialCreator(String pathAccountSid, String pathCredentialListSid, String username, String password)
pathAccountSid
- The unique id of the Account that is responsible for
this resource.pathCredentialListSid
- The unique id that identifies the credential
list to include the created credentialusername
- The username for this credential.password
- The password will not be returned in the response.public Credential create(TwilioRestClient client)
create
in class Creator<Credential>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.