View Media-library


                https://api.ocamba.com/v2/ocamba/media-library/{id}
            

Retrieves the details of a Media-library if a valid identifier was provided


Name
Description
idstringrequired
Unique identifier for media library.


Example: id=423

200 - OK
Arrow
Name
Description
items[ media-library ]
An array of all created items.
Media Library
Name
Description
app_idstring
A unique application identifier generated by the Ocamba platform.


Example: 1000123

company_idstring
A unique company identifier generated by the Ocamba platform.


Example: 1000123

create_timedateTime
Timezone: GMT.


Example: 2021-07-30 12:50:13

heightinteger
Available only for image mime types, represent height of image in pixels.


Example: 300

idstring
A unique identifier generated by the Ocamba platform.


Example: 12

locationstring (url)
Url location where file is stored.


Example: https://sm.ocmcore.com/share/6191234/adex/media/3945083025-example.png

mime_typestring
Mime type of the file.


Example: image/jpeg

namestring
Name of the file.


Example: example

sizeinteger
Size of file in bytes.


Example: 4356

update_timedateTime
Timezone: GMT.


Example: 2021-07-30 12:50:13

user_idstring
A unique user identifier generated by the Ocamba platform.


Example: 1123143

widthinteger
Available only for image mime types, represent width of image in pixels.


Example: 300

totalinteger
A total number of items.


Example: 1
tip
1 If you don't know the media library id, list the media libraries to find it.
200 Arrow
{
  "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"
    }
  ]
}