import plivo
client = plivo.RestClient("<auth_id>", "<auth_token>")
response = client.media.get('media_id')
print(response)
{
    "api_id": "<api_id>",
    "content_type": "image/png",
    "file_name": "SampleFile.png",
    "media_id": "<media_id>",
    "size": 700670,
    "upload_time": "2020-02-17T07:53:36.643522Z",
    "media_url": "https://media.plivo.com/Account/<auth_id>/Media/<media_id>"
}

This API lets you retrieve a media file that was uploaded, sent, or received by a user.

API Endpoint

GET
https://api.plivo.com/v1/Account/{auth_id}/Media/{media_id}/

Arguments

No arguments need to be passed.

Returns

This API call returns the details of the media files identified by the media_id specified in the request URL.

import plivo
client = plivo.RestClient("<auth_id>", "<auth_token>")
response = client.media.get('media_id')
print(response)
{
    "api_id": "<api_id>",
    "content_type": "image/png",
    "file_name": "SampleFile.png",
    "media_id": "<media_id>",
    "size": 700670,
    "upload_time": "2020-02-17T07:53:36.643522Z",
    "media_url": "https://media.plivo.com/Account/<auth_id>/Media/<media_id>"
}