我正在尝试用Java语言记录RingOut应用程序接口的调用段。
从URL文档中,我知道RingCentral应该是"https://platform.devtest.ringcentral.com/restapi/v1.0/account/accountId/telephony/sessions/telephonySessionId/parties/partyId/recordings",但是,我在Java SDK中没有看到"telephony“对象。
有没有人可以指导我用Java中的RingOut接口录制调用腿?
发布于 2019-11-07 00:52:22
您需要从create ring out call接口https://developers.ringcentral.com/api-reference/Call-Control/createCallOutCallSession1中获取电话会话id。它将返回session对象,它具有id (sessionid)。之后,您可以在createRecording接口中传入账号id、partyid和telephonySessionId。
{
"session": {
"creationTime": "2019-08-19T11:42:21Z",
"id": "s-54a38392c79849dab4a25fe8040edd53",
"origin": {
"type": "Call"
},
"parties": [
{
"direction": "Outbound",
"from": {
"deviceId": "803469127021",
"extensionId": "297277020",
"name": "John Smith",
"phoneNumber": "+18885287464"
},
"id": "p-54a38392c79849dab4a25fe8040edd53-1",
"muted": false,
"owner": {
"accountId": "37439510",
"extensionId": "297277020"
},
"standAlone": false,
"status": {
"code": "Setup"
},
"to": {
"phoneNumber": "+79817891689"
}
}
]
}
}https://stackoverflow.com/questions/58602279
复制相似问题