restricted to user and public shares. Group, guests and federated shares are out of this issue.
curl 'https://phoenix.owncloud.com/ocs/v2.php/apps/files_sharing//api/v1/shares?format=json&include_tags=true&format=json' \
-H 'pragma: no-cache' \
-H 'cookie: oc_sessionPassphrase=yODxGWYV1Lj2YVhEaZNBAFytjKBlvLhtW2Gg63L5o3fwyM1neQexQ93%2FtMPkk3v%2BbViPNcs7%2BErTXRI50b0uaOc7anFJRFPjjUADrb7NG%2BMEGJrl8231MA3zyc3dRK2q; ocmru40aixqr=jguuule56tpt2ojnvtvf6g7c3c' \
-H 'accept-encoding: gzip, deflate, br' \
-H 'accept-language: en-US,en;q=0.9,de;q=0.8' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' \
-H 'ocs-apirequest: true' \
-H 'accept: */*' \
-H 'cache-control: no-cache' \
-H 'authority: phoenix.owncloud.com' \
-H 'authorization: Bearer xRjL4AeJlsbQjdJsEt1QMbPWRhskMTSlmrIVkEUEiECkhkCvtc46BCuJcI6dqIIO' \
-H 'referer: https://phoenix.owncloud.com/custom/phoenix/index.html' \
-H 'x-request-id: ee314d4e-5d77-4768-b459-466684fa2ea7' --compressed | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6332 100 6332 0 0 18900 0 --:--:-- --:--:-- --:--:-- 18958
{
"ocs": {
"meta": {
"status": "ok",
"statuscode": 200,
"message": null,
"totalitems": "",
"itemsperpage": ""
},
"data": [
{
"id": "3",
"share_type": 0,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 19,
"stime": 1557304820,
"parent": null,
"expiration": null,
"token": null,
"uid_file_owner": "demo",
"displayname_file_owner": "demo",
"path": "/ownCloud Manual.pdf",
"item_type": "file",
"mimetype": "application/pdf",
"storage_id": "home::demo",
"storage": 3,
"item_source": 89,
"file_source": 89,
"file_parent": 22,
"file_target": "/ownCloud Manual (2).pdf",
"share_with": "admin",
"share_with_displayname": "admin",
"share_with_additional_info": "admin",
"mail_send": 0,
"attributes": null,
"tags": []
},
{
"id": "74",
"share_type": 3,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 5,
"stime": 1566479445,
"parent": null,
"expiration": null,
"token": "zt4Jl8dd5UiCk4K",
"uid_file_owner": "demo",
"displayname_file_owner": "demo",
"path": "/First",
"item_type": "folder",
"mimetype": "httpd/unix-directory",
"storage_id": "home::demo",
"storage": 3,
"item_source": 184,
"file_source": 184,
"file_parent": 22,
"file_target": "/First",
"name": "Public link",
"url": "https://phoenix.owncloud.com/s/zt4Jl8dd5UiCk4K",
"mail_send": 0,
"attributes": null,
"tags": []
},
{
"id": "24",
"share_type": 0,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 19,
"stime": 1561123833,
"parent": null,
"expiration": null,
"token": null,
"uid_file_owner": "demo",
"displayname_file_owner": "demo",
"path": "/spreadsheet.odp",
"item_type": "file",
"mimetype": "application/vnd.oasis.opendocument.presentation",
"storage_id": "home::demo",
"storage": 3,
"item_source": 124,
"file_source": 124,
"file_parent": 22,
"file_target": "/spreadsheet.odp",
"share_with": "admin",
"share_with_displayname": "admin",
"share_with_additional_info": "admin",
"mail_send": 0,
"attributes": null,
"tags": []
},
{
"id": "44",
"share_type": 0,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 3,
"stime": 1564485650,
"parent": null,
"expiration": null,
"token": null,
"uid_file_owner": "demo",
"displayname_file_owner": "demo",
"path": "/defaults.php",
"item_type": "file",
"mimetype": "application/x-php",
"storage_id": "home::demo",
"storage": 3,
"item_source": 120,
"file_source": 120,
"file_parent": 22,
"file_target": "/defaults.php",
"share_with": "admin",
"share_with_displayname": "admin",
"share_with_additional_info": "admin",
"mail_send": 0,
"attributes": null,
"tags": []
},
{
"id": "73",
"share_type": 0,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 1,
"stime": 1566474991,
"parent": null,
"expiration": null,
"token": null,
"uid_file_owner": "demo",
"displayname_file_owner": "demo",
"path": "/dasdasd",
"item_type": "file",
"mimetype": "application/octet-stream",
"storage_id": "home::demo",
"storage": 3,
"item_source": 461,
"file_source": 461,
"file_parent": 22,
"file_target": "/dasdasd",
"share_with": "share3",
"share_with_displayname": "John Richards the Emperor of Long Names",
"share_with_additional_info": "share3",
"mail_send": 0,
"attributes": null,
"tags": []
},
{
"id": "73",
"share_type": 0,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 1,
"stime": 1566474991,
"parent": null,
"expiration": null,
"token": null,
"uid_file_owner": "demo",
"displayname_file_owner": "demo",
"path": "/dasdasd",
"item_type": "file",
"mimetype": "application/octet-stream",
"storage_id": "home::demo",
"storage": 3,
"item_source": 461,
"file_source": 461,
"file_parent": 22,
"file_target": "/dasdasd",
"share_with": "share3",
"share_with_displayname": "John Richards the Emperor of Long Names",
"share_with_additional_info": "share3",
"mail_send": 0,
"attributes": null,
"tags": []
},
{
"id": "19",
"share_type": 1,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 1,
"stime": 1559737320,
"parent": null,
"expiration": null,
"token": null,
"uid_file_owner": "admin",
"displayname_file_owner": "admin",
"path": "/Mini LED Display.dll",
"item_type": "file",
"mimetype": "application/octet-stream",
"storage_id": "shared::/Mini LED Display.dll",
"storage": 2,
"item_source": 220,
"file_source": 220,
"file_parent": 22,
"file_target": "/Mini LED Display.dll",
"share_with": "admin",
"share_with_displayname": "admin",
"mail_send": 0,
"attributes": null,
"tags": []
},
{
"id": "66",
"share_type": 3,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 1,
"stime": 1566376223,
"parent": null,
"expiration": null,
"token": "pgWAXcEpOl448Gt",
"uid_file_owner": "demo",
"displayname_file_owner": "demo",
"path": "/ok.dms",
"item_type": "file",
"mimetype": "application/octet-stream",
"storage_id": "home::demo",
"storage": 3,
"item_source": 449,
"file_source": 449,
"file_parent": 22,
"file_target": "/ok.dms",
"name": "Public link",
"url": "https://phoenix.owncloud.com/s/pgWAXcEpOl448Gt",
"mail_send": 0,
"attributes": null,
"tags": [
"_$!<Favorite>!$_"
]
},
{
"id": "72",
"share_type": 3,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 4,
"stime": 1566473741,
"parent": null,
"expiration": "2020-03-03 00:00:00",
"token": "W4W1Doast9EBpXD",
"uid_file_owner": "demo",
"displayname_file_owner": "demo",
"path": "/test",
"item_type": "folder",
"mimetype": "httpd/unix-directory",
"storage_id": "home::demo",
"storage": 3,
"item_source": 415,
"file_source": 415,
"file_parent": 22,
"file_target": "/test",
"share_with": "***redacted***",
"share_with_displayname": "***redacted***",
"name": "Public link",
"url": "https://phoenix.owncloud.com/s/W4W1Doast9EBpXD",
"mail_send": 0,
"attributes": null,
"tags": []
},
{
"id": "72",
"share_type": 3,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 4,
"stime": 1566473741,
"parent": null,
"expiration": "2020-03-03 00:00:00",
"token": "W4W1Doast9EBpXD",
"uid_file_owner": "demo",
"displayname_file_owner": "demo",
"path": "/test",
"item_type": "folder",
"mimetype": "httpd/unix-directory",
"storage_id": "home::demo",
"storage": 3,
"item_source": 415,
"file_source": 415,
"file_parent": 22,
"file_target": "/test",
"share_with": "***redacted***",
"share_with_displayname": "***redacted***",
"name": "Public link",
"url": "https://phoenix.owncloud.com/s/W4W1Doast9EBpXD",
"mail_send": 0,
"attributes": null,
"tags": []
},
{
"id": "74",
"share_type": 3,
"uid_owner": "demo",
"displayname_owner": "demo",
"permissions": 5,
"stime": 1566479445,
"parent": null,
"expiration": null,
"token": "zt4Jl8dd5UiCk4K",
"uid_file_owner": "demo",
"displayname_file_owner": "demo",
"path": "/First",
"item_type": "folder",
"mimetype": "httpd/unix-directory",
"storage_id": "home::demo",
"storage": 3,
"item_source": 184,
"file_source": 184,
"file_parent": 22,
"file_target": "/First",
"name": "Public link",
"url": "https://phoenix.owncloud.com/s/zt4Jl8dd5UiCk4K",
"mail_send": 0,
"attributes": null,
"tags": []
}
]
}
}