GetChatMediaUrl
Retrieves the access URL for a media file in a chat message.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaId |
string |
Yes |
media id |
$iAHNCNQCo3dhdgMGBAAFAAbaACOEAaQhIEeoAqpjjBl42N6o_kg7A88AAAGRIRRuBgTOACrxHgcACM8AAAGRIYJLBQ |
| RequestId |
string |
No |
The request ID. |
8707EB29-BAED-4302-B999-40BA61877437 |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
GetChatMediaUrlResponse |
||
| Data |
string |
The returned data. |
None |
| RequestId |
string |
The request ID. |
9FBA26B0-462B-4D77-B78F-AF35560DBC71 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Code |
string |
The response code. |
OK |
| Message |
string |
The response message. |
Internal service issue. Detail:. |
| Params |
array |
The response parameters. |
|
|
string |
The response parameters. |
['OFFLINE', 'READY,RINGING,TALKING'] |
Examples
Success response
JSON format
{
"Data": "无",
"RequestId": "9FBA26B0-462B-4D77-B78F-AF35560DBC71",
"HttpStatusCode": 200,
"Code": "OK",
"Message": "Internal service issue. Detail:.",
"Params": [
"['OFFLINE', 'READY,RINGING,TALKING']"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | The specified call center instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.