Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
vineet
6 years agoExplorer | Level 3
webhooks notification
we have reviced the notification json format, but how can get actual file chnages.
- 6 years ago
When you first store the access tokens and cursors in your app (e.g., in your database), you should record which Dropbox account ID each one belongs to. (For any given access token, you can use /2/users/get_current_account to check the account ID, which just needs to be done once each.)
Then, when you get the webhook notification, you can use the account ID to look up the corresponding access token and cursor.
Greg-DB
Dropbox Community Moderator
6 years agoTo clarify, are you calling /2/files/list_folder/get_latest_cursor before or after you received the webhook notification?
The order should look like this:
- Call /2/files/list_folder/get_latest_cursor to get the latest cursor for the account using the access token for the account and save the returned cursor.
- Make changes in the account.
- Receive the webhook notification from Dropbox for the account.
- Call /2/files/list_folder/continue using the cursor received in step 1 and the same access token.
vineet
6 years agoExplorer | Level 3
Thnaks, for the fast response
i want to ask question
we have recived Cursor response from Get lateat cursor API and save cursor data into database and
I have recived the notification and the save the notification json format into database
How can get User details from which API
{"list_folder": {"accounts": ["dbid:AADsKehzrQqxnG4GnclQAYU2mU0ER_f9vOw"]}, "delta": {"users": [2399690544]}}
please suggest me
- Greg-DB6 years ago
Dropbox Community Moderator
When you first store the access tokens and cursors in your app (e.g., in your database), you should record which Dropbox account ID each one belongs to. (For any given access token, you can use /2/users/get_current_account to check the account ID, which just needs to be done once each.)
Then, when you get the webhook notification, you can use the account ID to look up the corresponding access token and cursor.
- vineet6 years agoExplorer | Level 3
Thanks for the response Greg
Can i use GetAccount API , i got the response dbId for reciving notification and pass the parameter dbId into GetAccount API so getting the response for particular user???
???????
- Greg-DB6 years ago
Dropbox Community Moderator
You can technically use /2/users/get_account to look up the account information for a particular account based on an account ID, but for the sake of efficiency I recommend instead recording the information initially as described in my previous comment.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
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!