Links

Get Media

​
How to get a media
​
Request
Response
GET https://mburger.cloud/api/media/<id>
curl https://mburger.cloud/api/media/<id>
-H "Accept: application/json"
-H "X-MBurger-Token: <token>"
-H "X-MBurger-Version: 3"

URL Parameters

Name
Type
Required
Description
id
int
Yes
Media id.

Parameters

Name
Type
Required
Description
image_format
string
No
Specify which image dimension to include in response. Values are thumb, medium, large and original. Default is medium.
When successful, a HTTP 200 and JSON like this is returned:
{
"status_code": 0,
"body": {
"id": 1,
"url": "https://cdn.mburger.cloud/storage/1/conversions/image-medium.jpg",
"size": 12302,
"mime_type": "image/jpeg"
}
}
​