简体   繁体   English

RingCentral API 下载语音信箱

[英]RingCentral API to download voicemail

When someone leaves a voicemail, I would like to have RingCentral send an email to me with the voicemail attached as an audio file.当有人留下语音邮件时,我想让 RingCentral 发送一个 email 给我,并将语音邮件作为音频文件附加。 RingCentral sends a "notification" and optionally, the transcribed text of the voicemail, but not the audio file. RingCentral 发送“通知”和可选的语音邮件的转录文本,但不发送音频文件。 Can I use the RingCentral API to access the voicemail audio files (and transcriptions)?我可以使用 RingCentral API 访问语音邮件音频文件(和转录)吗?

RingCentral already have the feature of sending notification mails with voicemail audio files. RingCentral 已经具有发送带有语音邮件音频文件的通知邮件的功能。
You need to set the notification to your mail from your online account portal:您需要将通知设置为从您的在线帐户门户发送到您的邮件:

在此处输入图像描述

and you will get email that contains voicemail audio files:您将获得包含语音邮件音频文件的 email:

在此处输入图像描述

If you want to get the audio file via API, you need to call the message store API:如果想通过API获取音频文件,需要调用消息库API:
GET https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store获取https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store
and in response you will get the AudioTranscription and voice mail media file url something like this:作为回应,您将获得 AudioTranscription 和语音邮件媒体文件 url ,如下所示:

   {
....

    "attachments": [
    {
                
 "id": <id>,    
    "uri": 
https://media.devtest.ringcentral.com/restapi/v1.0/account/<accountid>/extension/<extensionid>/message-store/<messagestireid>/content/<contentid>
    
    }

You can download the voicemail file from the attachment url您可以从附件url下载语音信箱文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM