根据话单id获取话单数据
POST
/tmk/api/CallRecord
请求参数
Header 参数
Content-Type
string
必需
默认值:
application/json
Authorization
string
token
Body 参数application/json
recordId
string
通话标识
示例
{
"recordId": "1000037366111982"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/tmk/api/CallRecord' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"recordId": "1000037366111982"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
通话标识
caller
string
主叫
callee
string
被叫
duration
string
通话时长秒
callTime
string
拨打时间
recordingUrl
string
录音地址
callbackData
string
附加数
saasMoney
integer
扣费金额分
示例
{
"code": 1,
"message": "成功",
"data": {
"id": "1000037366111982",
"caller": "17685602222",
"callee": "17685602211",
"callTime": "2023-02-09 10:32:37",
"callbackData": "",
"saasMoney": 15,
"recordingUrl": "https://********************************.wav",
"duration": "35"
}
}
修改于 2023-06-30 10:58:14