Get file metadata
With this API call you can retrieve an asset metadata.
api.asset.get_by_url(cloudflow_url)
Example
If you need the information of the asset with URL: cloudflow://PP_FILE_STORE/Demo%20Files/Cakepops_NEW.pdf
the API call:
api.asset.get_by_url("cloudflow://PP_FILE_STORE/Demo%20Files/Cakepops_NEW.pdf")
returns:
{
"_id": "553a171ce7c40000000004a1",
"url": "PP_FILE_STORE/Demo Files/Cakepops_NEW.pdf",
"sub": "",
"cloudflow": {
"file": "cloudflow://PP_FILE_STORE/Demo%20Files/Cakepops_NEW.pdf",
"enclosing_folder": "cloudflow://PP_FILE_STORE/Demo%20Files/",
"part": "cloudflow://PP_FILE_STORE/Demo%20Files/Cakepops_NEW.pdf"
},
"file_name": "Cakepops_NEW.pdf",
"file_extension": ".pdf",
"document_name": "Cakepops_NEW",
"path": [
"PP_FILE_STORE",
"Demo Files"
],
"filetype": "application/pdf",
"modtime": 1426057808,
"quantum": {},
"mime_types": [
"application/pdf"
],
"file_time": {
"creation_local": "2015-04-24T09:53:19+0200",
"creation_utc": "2015-04-24T08:53:19Z",
"creation": 1429858399,
"modification_local": "2015-03-11T08:10:08+0100",
"modification_utc": "2015-03-11T07:10:08Z",
"modification": 1426054208
},
"file_size": 43091942,
"pagecount": 1,
...
}