REST API: Account
When you first sign up with Twilio, you have just one account, your main account. But you can also create more accounts... subaccounts are useful for things like segmenting phone numbers and usage data for your customers and controlling access to data. For more information on subaccounts see Using Subaccounts.
Account properties
Resource Properties in REST API format | |
---|---|
auth_token
|
このアカウントの認証トークンです。 トークンは他人に知られないように管理し、共有しないでください。 |
date_created
|
このアカウントが生成された日付の GMT 表記です。RFC 2822 フォーマットを使用します。 |
date_updated
|
このアカウントが最後に更新された日付の GMT 表記です。RFC 2822 フォーマットを使用します。 |
friendly_name
|
このアカウントの、人間が読みやすい形式の説明です。64 文字まで設定できます。 デフォルトでは、FriendlyName はユーザーのメールアドレスです。 |
owner_account_sid
|
The unique 34 character id that represents the parent of this account. The OwnerAccountSid of a parent account is it's own sid. |
sid
|
このリソースを一意に識別する 34 文字の文字列です。 |
status
|
このアカウントの状態です。 通常は |
subresource_uris
|
A Map of various subresources available for the given Account Instance |
type
|
The type of this account. Either |
uri
|
このリソースのURIで、右記のURLに対する相対パスです |
Create an Account resource
https://api.twilio.com/2010-04-01/Accounts.json
リクエストの発行に使用するアカウントのサブアカウントとして、新しいアカウント インスタンス リソースを作成します。 詳細は、 サブアカウントを作成する を参照してください。
パラメーター
Parameters in REST API format | |
---|---|
friendly_name
オプション
|
A human readable description of the account to create, defaults to |
例 1
Fetch an Account resource
https://api.twilio.com/2010-04-01/Accounts/{Sid}.json
上述のプロパティを含む、アカウントの表現を返します。
パラメーター
Parameters in REST API format | |
---|---|
sid
Path
|
The Account Sid that uniquely identifies the account to fetch |
例 1
Read multiple Account resources
https://api.twilio.com/2010-04-01/Accounts.json
Read the set of Accounts belonging to the Account used to make the API request. This list includes that account, along with any subaccounts belonging to it.
When fetching multiple pages of API results, use the provided nextpageuri
parameter to retrieve the next page of results. All of the Twilio Helper Libraries use the nextpageuri
to page through resources. For more info on paging refer to the Twilio's response documentation
パラメーター
Parameters in REST API format | |
---|---|
friendly_name
オプション
|
この名前と FriendlyName が一致するアカウント リソースのみを返します。 |
status
オプション
|
指定した状態のアカウント リソースのみを返します。 |
例 1
例 2
Update an Account resource
https://api.twilio.com/2010-04-01/Accounts/{Sid}.json
パラメーター
Parameters in REST API format | |
---|---|
sid
Path
|
The Account Sid that uniquely identifies the account to update |
friendly_name
オプション
|
Update the human-readable description of this Account |
status
オプション
|
このアカウントの状態を変更します。 |
例 1
例 2
例 3
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。