REST API Documentation
In addition to the IoT Device Manager in Developer Console, the REST API allows you to manage the deployed devices programmatically, from your own backend. Using the IoT Device Manager REST API, you can provision new devices, change their configuration, group them into fleets and deployments, add certificates and keys for their authentication.
APIのベースURL
In Developer Preview phase of Sync for IoT, all URLs in the reference documentation use the following base URL:
https://preview.twilio.com/DeployedDevices/
All requests to the IoT Device Manager REST API are served over HTTPS. Unencrypted HTTP is not supported.
認証
REST API への HTTP リクエストは、Twilio で提供される他の REST API と同様、HTTP ベーシック認証により保護されます。Twilio がどのように認証を処理するかは、セキュリティードキュメントをご確認ください。簡単に言うと、HTTP ベーシック認証では Twilio AccountSID をユーザー名、AuthToken をパスワードとして使います。
curl -G https://preview.twilio.com/DeployedDevices/Fleets \ -u '[YOUR ACCOUNT SID]:[YOUR AUTH TOKEN]'
アカウント Sid と Auth Token はアドミンコンソールで確認できます。別の方法として、API キーと API シークレットを使用して、REST API リクエストを認証することもできます。API キーのペアもコンソールで管理できます。
Twilio ヘルパーライブラリ
You can use the Twilio Server-Side SDKs to interact with the IoT Device Manager REST resources.
Sync for IoT features are available in all stable builds of the Twilio Helper Libraries for C#, Java, Node.js, PHP, Python, Ruby.
RESTリソース
ヘルプが必要ですか?
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.