Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi!
I'm trying to use the sharing/list_file_members in order to fetch the last time a shared file have been seen by its member.
According to the API, the response for each member should include the field time_last_seen, in case the member have opened the file.
However, it does not matter if members have opened it or not, the field is not being returned at all in the response.
Am I missing anything?
This is the API I'm doing:
curl -X POST "https://api.dropboxapi.com/2/sharing/list_file_members" --header "Content-Type: application/json" \
--header "Authorization: Bearer <AUTH_TOKEN>" --header "Dropbox-API-Select-User: <USER_ID>" --data "{\"file\": \"<FILE_ID\"}"
From the code you shared, it doesn't look like you're doing anything wrong. I just gave this a try myself and I am seeing time_last_seen set as expected.
Can you share some more information so I can look into this further? For instance, what steps did you take to share the file, and how did the recipient view it? Additionally, can you share the output you are getting? Feel free to open an API ticket if you'd prefer to share privately. In either case, make sure you still redact the access token. Thanks!
Hi,!
Thanks for your response.
I'm using a Dropbox Standard plan. Can it be related to the fact that only in Dropbox Advanced / Professional state I see the checkbox of 'Viewer history' Is this the feature required in order to see the time_last_seen returned?
This is an example of the response I get:
{
"users": [
{
"access_type": {
".tag": "viewer"
},
"permissions": [],
"is_inherited": false,
"user": {
"account_id": "dbid:XXXX",
"email": "XXX@XXXXX",
"display_name": "XXXX",
"same_team": false
}
},
{
"access_type": {
".tag": "viewer"
},
"permissions": [],
"is_inherited": false,
"user": {
"account_id": "dbid:YYYY",
"email": "YYYY",
"display_name": "YYYY",
"same_team": true,
"team_member_id": "dbmid:YYYYY"
}
},
{
"access_type": {
".tag": "owner"
},
"permissions": [],
"is_inherited": true,
"user": {
"account_id": "dbid:ZZZZZ",
"email": "ZZZZZ,
"display_name": "ZZZZZ",
"same_team": true,
"team_member_id": "dbmid:Z"ZZZ
}
}
],
"groups": [],
"invitees": []
}
Apologies, it appears that's correct and this field depends on that feature being enabled. I'll bring this up with the team to get that reflected in the API documentation.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!