View Media-library
View Media-library
GET
https://api.ocamba.com/v2/ocamba/media-library/{id}
Retrieves the details of a Media-library if a valid identifier was providedPath parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/ocamba/media-library/{id}" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/ocamba/media-library/{id}';
const options = {
method: 'GET',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/ocamba/media-library/{id}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
200 OK
{
"total": 1,
"items": [
{
"id": "12",
"company_id": "1000123",
"app_id": "1000123",
"user_id": "1123143",
"location": "https://sm.ocmcore.com/share/6191234/adex/media/3945083025-example.png",
"name": "example",
"mime_type": "image/jpeg",
"size": 4356,
"width": 300,
"height": 300,
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
Responses
Tip
If you don’t know the media library id, list the media libraries to find it.