I want to get "download_count" of a file, but the shared_link object is null
I want to get "download_count" of a file, so I use this API (get https://api.box.com/2.0/files/:file_id). According to API reference, the "download_count" is in shared_link object.
"shared_link": { "access": "open", "download_count": 3, "download_url": "https://ww...
But when I call this API, the shared_link object is null. Could you please tell me how to get shared_link object or how to get download_count? Thanks.
Below is API response:
......
-
Hello,
Does the file you are looking at have a shared link set up? Typically if the value is null - a shared link hasn't been set up for the file. That download_count field is only tracking how many downloads have occurred after someone has clicked on the shared link.
Alex, Box Developer Advocate
Post is closed for comments.
Comments
1 comment