List Media-libraries
List Media-libraries
GET
https://api.ocamba.com/v2/ocamba/media-library
Returns the list of company related media existing in OcambaQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/ocamba/media-library" \
-H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/ocamba/media-library';
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");
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": 30,
"items": [
{
"id": "124",
"company_id": "6123120",
"app_id": "1001",
"user_id": "1001277",
"location": "https://sm.ocmcore.com/share/6123120/adex/media/16919029-joda.jpeg",
"name": "joda.jpeg",
"size": 193302,
"mime_type": "image/jpeg",
"width": 1200,
"height": 900,
"create_time": "2022-03-28 08:36:19",
"update_time": "2022-03-28 08:36:19"
},
{
"id": "123",
"company_id": "6123120",
"app_id": "1001",
"user_id": "1001277",
"location": "https://sm.ocmcore.com/share/6123120/adex/media/1255776809-rick.jpeg",
"name": "rick.jpeg",
"size": 5020,
"mime_type": "image/jpeg",
"width": 200,
"height": 200,
"create_time": "2022-03-28 08:35:59",
"update_time": "2022-03-28 08:35:59"
},
{
"id": "122",
"company_id": "6123120",
"app_id": "1001",
"user_id": "1001277",
"location": "https://sm.ocmcore.com/share/6123120/adex/media/3846873605-test1234.png",
"name": "test1234.png",
"size": 41236,
"mime_type": "image/png",
"width": 400,
"height": 479,
"create_time": "2022-03-28 08:35:32",
"update_time": "2022-03-28 08:35:32"
}
]
}
Responses