===== 以Client账号方式查询Client信息 ===== 通过HTTPS GET方式提交请求,云之讯融合通讯开放平台收到请求后根据Client名称查询并返回Client信息。 ==== 1.1 请求 ==== **请求地址** /{SoftVersion}/Accounts/{accountSid}/Clients **请求包头** 详情请查阅统一请求包头,并使用开发者账号进行验证。 **请求包体** ^属性 ^类型 ^约束 ^说明 | |appId |String |必选 |应用Id| |clientNumber |String |必选 |clientNumber号码| **XML请求示例** GET/2014-06-30/Accounts/e03bc9106c6ed0eaebfce8c368fdcd48/Clients.xml?sig=0E270413B0B038B7AEB6997F510F98EB&clientNumber=66807000020851&appId=e462aba25bc6498fa5ada7eefe1401b7 Host:api.ucpaas.com Accept:application/xml Content-Type:application/xml;charset=utf-8 Authorization:ZTAzYmM5MTA2YzZlZDBlYWViZmNlOGMzNjhmZGNkNDg6MjAxNDA2MjMxODU4MDE= **JSON请求示例** GET/2014-06-30/Accounts/e03bc9106c6ed0eaebfce8c368fdcd48/Clients?sig=83D00E8EF62FC601A4035AE7EEF6197F&clientNumber=66807000020851&appId=e462aba25bc6498fa5ada7eefe1401b7 Host:api.ucpaas.com Accept:application/json Content-Type:application/json;charset=utf-8 Authorization:ZTAzYmM5MTA2YzZlZDBlYWViZmNlOGMzNjhmZGNkNDg6MjAxNDA2MjMxODU5MDM= ==== 1.2 响应 ==== **响应包体** ^属性 ^类型 ^约束 ^说明 | |respCode |String |必选 |请求状态码,取值000000(成功)| |count |String |必选 |Client的数量| |client |String |必选 |节点的名称| |friendlyName |String |必选 |Client绑定的昵称| |clientType |String |必选 |Client类型(即平台是否对Client计费)| |mobile |String |必选 |Client绑定的手机号码| |balance |String |必选 |Client余额| |clientNumber |String |必选 |Client号码。由14位数字组成| |clientPwd |String |必选 |Client的密码| |createDate |String |必选 |Client的创建时间| |roam |String |可选 |是否开通呼转1:开通,0:未开通| **XML响应示例** 000000 1 /*Client为节点*/ 0 66807000020851 afabcaa9 1 2014-06-23 18:41:51 71127894 18612345678 1 **JSON响应示例** { "resp" : { "respCode" : "000000", "count" : 1, "client" : { "balance" : 0, "clientNumber" : 66807000020851, "clientPwd" : "afabcaa9", "clientType" : 1, "createDate" : "2014-06-23 18:41:51", "friendlyName" : 71127894, "mobile" : 18612345678 "roam" : 1 } } }