生成SDK憑證

POST
https://api.laaffic.com/v3/cc/seat/createSdkAuthentication
為CC-SDK生成坐席憑證,拿到此憑證後可初始化SDK使用web電話。 同一個坐席同一時間只有一個憑證有效,後面生成的憑證會覆蓋前面的憑證。
 
請求參數
參數 說明 是否必填 類型
account 坐席帳號 String
expires 憑證有效時間,組織秒,取值60-28800 Integer
 
請求示例
Request URL: 
    https://api.laaffic.com/v3/cc/seat/createSdkAuthentication
Request Method: 
    POST
Request Headers:
    Content-Type: application/json;charset=UTF-8
    Sign: 05d7a50893e22a5c4bb3216ae3396c7c
    Timestamp: 1630468800
    Api-Key: bDqJFiq9
Request Body:
{
    "account": "0705C245_001",
    "expires":3600
}
 
響應參數
參數 說明 類型
status 狀態碼,0成功,其他失敗參見響應狀態碼說明 String
reason 失敗原因說明 String
data   String
authentication 憑證,用於初始化CC-SDK String
 
響應示例
{
    "status":"0",
    "reason":"success",
    "data":{
        "authentication":"Bearer SDNVerRWZp:0705C245_001:0ecc5e73-4252-42f6-8bf1-3a2d0bf7ea98"
    }
}
 
響應狀態碼
status 狀態說明
0 成功
-1 帳號認證異常
-2 ip限制
-16 時間戳過期
-18 系統異常
-22 參數異常
-24 數據不存在

Telegram
WhatsApp
諮詢

點擊此處開啟人工服務