サブアカウントを作成し、plivo API を使用してサブアカウントのエンドポイントの詳細を取得しようとしました。このガイドに従っています ( https://www.plivo.com/docs/getting-started/endpoint-api/#get-details-of-a-single-endpoint )
リクエスト:
GET https://api.plivo.com/v1/Account/{auth_id}/Endpoint/{endpoint_id}/
結果は次のようになります。
{
"alias": "sub account1",
"api_id": "cf626892-84bb-11e6-8ede-02ed609bd62b",
"application": "/v1/Account/MAMDIWYJA2M2U3MWNKZJ/Application/20128944308334494/",
"endpoint_id": "14369816564783",
"password": "xxxd95f4feb21412a692e73929961e",
"resource_uri": "/v1/Account/MAMDIWYJA2M2U3MWNKZJ/Endpoint/14369816564783/",
"sip_contact": "sip:xxxxx160923031839@182.253.141.63:44479;transport=TCP;ob",
"sip_expires": "2016-09-29 03:42:33",
"sip_registered": "true",
"sip_uri": "sip:xxxxx160923031839@phone.plivo.com",
"sip_user_agent": "n/a",
"sub_account": "/v1/Account/SAZGE1ZGJLZTE1ZTFMZM/",
"username": "xxxxx160923031839"
}
上記のパスワード フィールドは何に使用されているのでしょうか。それは私のエンドポイントのパスワードですか? そのエンドポイント ユーザー名 (xxxxx160923031839) とそのパスワード (xxxd95f4feb21412a692e73929961e) を使用してログインできないためです。そのエンドポイントのユーザー名 (xxxxx160923031839) とメイン アカウントのパスワードを使用してログインしようとしたときにのみ成功しました。
参考までに、私はアンドロイドplivoサンプルプロジェクトを使用しています
誰でも知っていますか?ありがとう。