SIP Credential Resource
The Credential resource stores usernames and password information.
Username and Password
Each Username
requires a corresponding password that meets the requirements in the Password
parameter's description.
We don't store the passwords you provide in the credential records as cleartext. Instead, they are MD5 hashed in accordance with the digest authentication specification.
SIP Credential properties
Resource Properties in REST API format | |
---|---|
sid
|
このリソースを一意に識別する 34 文字の文字列です。 |
account_sid
|
The unique id of the Account that is responsible for this resource. |
credential_list_sid
|
The unique id that identifies the credential list that includes this credential. |
username
|
The username for this credential. |
date_created
|
このリソースが生成された日付の GMT 表記です。 RFC 2822 フォーマットを使用します。 |
date_updated
|
DateUpdated | このリソースが最後に更新された日付の GMT 表記です。 RFC 2822 フォーマットを使用します。 |
uri
|
このリソースのURIで、右記のURLに対する相対パスです |
Create a SIP Credential resource
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json
パラメーター
Parameters in REST API format | |
---|---|
account_sid
Path
|
The unique id of the Account that is responsible for this resource. |
credential_list_sid
Path
|
The unique id that identifies the credential list to include the created credential. |
username
必須
|
The username that will be passed when authenticating SIP requests. The username should be sent in response to Twilio's challenge of the initial INVITE. It can be up to 32 characters long. |
password
必須
|
The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg |
例 1
Fetch a SIP Credential resource
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json
パラメーター
Parameters in REST API format | |
---|---|
account_sid
Path
|
The unique id of the Account that is responsible for this resource. |
credential_list_sid
Path
|
The unique id that identifies the credential list that contains the desired credential. |
sid
Path
|
The unique id that identifies the resource to fetch. |
例 1
Read multiple SIP Credential resources
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json
パラメーター
Parameters in REST API format | |
---|---|
account_sid
Path
|
The unique id of the Account that is responsible for this resource. |
credential_list_sid
Path
|
The unique id that identifies the credential list that contains the desired credentials. |
例 1
Update a SIP Credential resource
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json
The update action is used to update a user's password.
パラメーター
Parameters in REST API format | |
---|---|
account_sid
Path
|
The unique id of the Account that is responsible for this resource. |
credential_list_sid
Path
|
The unique id that identifies the credential list that includes this credential. |
sid
Path
|
The unique id that identifies the resource to update. |
password
オプション
|
The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg |
例 1
Delete a SIP Credential resource
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json
パラメーター
Parameters in REST API format | |
---|---|
account_sid
Path
|
The unique id of the Account that is responsible for this resource. |
credential_list_sid
Path
|
The unique id that identifies the credential list that contains the desired credentials. |
sid
Path
|
The unique id that identifies the resource to delete. |
例 1
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。