上传 RingCentral 自定义问候音频文件的最大大小是多少?
What is the max size for uploading a RingCentral custom greeting audio file?
调用 RingCentral 创建自定义问候语时API:
POST /restapi/v1.0/account/{accountId}/extension/{extensionId}/greeting
对于较大的 MP3 和 WAV 媒体文件,我有时会遇到以下错误。有官方尺寸限制吗?
HTTP/1.1 413 Request Entity Too Large
{
"errorCode": "AGW-413",
"message": "Request entity too large",
"errors": [
]
}
API 参考资料或博客文章中没有指定限制:
API参考:
https://developers.ringcentral.com/api-docs/latest/index.html#!#RefCreateUserCustomGreeting
我正在使用 ringcentral_sdk
gem 和以下代码:
req = RingCentralSdk::REST::Request::Multipart.new(
method: 'post',
url: 'account/~/extension/~/greeting'
).
add_json({type: 'Voicemail', answeringRule: {id: '11111111'}}).
add_file(file)
res = client.send_request req
puts res.status
puts MultiJson.encode(res.body, pretty: true)
这篇博客文章有更多内容:
我被告知此 API 目前有 1MB 的文件大小限制。
我在这里用 0.4MB 和 2.5MB 的 WAV 文件进行了测试,确认较小的文件有效,而较大的文件导致了这个错误。
其他有用的测试文件似乎在这里可用:
我写了一个Python样本:https://github.com/tylerlong/ringcentral-python/blob/master/test/test_multipart_mixed.py
我还确认,如果音频文件太大,操作将失败,您将收到消息 Request entity too large
。
调用 RingCentral 创建自定义问候语时API:
POST /restapi/v1.0/account/{accountId}/extension/{extensionId}/greeting
对于较大的 MP3 和 WAV 媒体文件,我有时会遇到以下错误。有官方尺寸限制吗?
HTTP/1.1 413 Request Entity Too Large
{
"errorCode": "AGW-413",
"message": "Request entity too large",
"errors": [
]
}
API 参考资料或博客文章中没有指定限制:
API参考:
https://developers.ringcentral.com/api-docs/latest/index.html#!#RefCreateUserCustomGreeting
我正在使用 ringcentral_sdk
gem 和以下代码:
req = RingCentralSdk::REST::Request::Multipart.new(
method: 'post',
url: 'account/~/extension/~/greeting'
).
add_json({type: 'Voicemail', answeringRule: {id: '11111111'}}).
add_file(file)
res = client.send_request req
puts res.status
puts MultiJson.encode(res.body, pretty: true)
这篇博客文章有更多内容:
我被告知此 API 目前有 1MB 的文件大小限制。
我在这里用 0.4MB 和 2.5MB 的 WAV 文件进行了测试,确认较小的文件有效,而较大的文件导致了这个错误。
其他有用的测试文件似乎在这里可用:
我写了一个Python样本:https://github.com/tylerlong/ringcentral-python/blob/master/test/test_multipart_mixed.py
我还确认,如果音频文件太大,操作将失败,您将收到消息 Request entity too large
。