Skip to main content

GetMedia

To get a media file associated with a business phone.

Request Parameters

NameTypeDescriptionRequired
ActionstringValue: ActionName.YES
AccountIdintAccount Id.YES
MediaIdstringMedia file Id.YES
BusinessPhonestringBusiness phone number.YES

Request Example

{
"Action": "GetMedia",
"AccountId": 8899,
"BusinessPhone": "86150xxxx987",
"MediaId":"76576xxxxxx028"
}

Response Parameters

NameTypeDescription
ActionstringGetMediaResponse.
RetCodeint0 for success Error Codes.
MessagestringMessage.
RequestIdstringRequest Id.
DataobjectReturn data.

Data Parameters

NameTypeDescription
FileNamestringFile name.
MimeTypestringFile type.
URLstringFile content url.

Response Example

{
"Action": "GetMediaResponse",
"Data": {
"FileName": "62093be0-7a55-xxxx-xxx-38f7607fcf1f4ac35b3a-264e-472e-bd8d-xxxxxxxxx",
"MimeType": "image/png",
"URL": "https://xxx"
},
"Message": "",
"RequestId": "e21c3f9d-78ec-4cb7-9472-5d4376fa1957",
"RetCode": 0
}