Authyアプリケーション
Twilio Authy APIアプリケーションはConsoleのAuthyセクションで作成されます。 ひとつのTwilioアカウントにいくらでもアプリケーションを作成できますが、作成された各アプリケーションは別個のユーザー一覧と別個のAPIキーによって隔離されます。
新しいアプリケーションを作る
To create a new Authy application, click the red plus ('+') button from the console:
こちらで、AuthyアプリケーションIDの取得方法を確認してください。
また、API自体でAuthy APIについての情報を取得することも可能です。
アプリケーションの詳細を取得する
この呼び出しは、アプリケーションの詳細を取得します:
- Name(名前):
- Plan(プラン):
- SMS-enabled(SMSのオン/オフ状態)
GET https://api.authy.com/protected/{FORMAT}/app/details
パラメーター
名前 | Type | 概要 |
---|---|---|
user_ip | 文字列(オプション) | IP of the user requesting to see the application details. (📇 PII ) |
レスポンス
名前 | Type | 概要 |
---|---|---|
App | App | Object with information about the application. (🏢 not PII ) |
success | boolean | True if the request was successful. (🏢 not PII ) |
message | 文字列 | A message indicating the result of the operation. (🏢 not PII ) |
例
curl 'https://api.authy.com/protected/json/app/details' \ -H "X-Authy-API-Key: d57d919d11e6b221c9bf6f7c882028f9"
サンプルレスポンス:
{ "app": { "name": "Authy Sample", "plan": "pay_as_you_go", "sms_enabled": true, "phone_calls_enabled": true, "app_id": 1234, "onetouch_enabled": true }, "message": "Application information.", "success": true }
ヘルプが必要ですか?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.