Hi Dropbox Community,
I am working on a java app, which is integrating with the dropbox api. I managed to upload, move, delete files without any problems. Now, I am trying to use webhooks for my app. Here are some details to have some context about what I am trying to achieve.
I have a dedicated dropbox account which is linked to my app [through this setup -> https://www.dropbox.com/developers/apps] and this account has access in our dropbox storage only to a specific folder. I want dropbox to notify my app, when files are added or deleted inside this folder. Reading through your documentation [https://www.dropbox.com/developers/reference/webhooks#tutorial], there are some details that I don't fully understand, and I could use some assistance if possible. So here are my questions:
1. JSON notification format: What is the meaning of the accounts element ? I read in another post on this forum that, each dbid:******.xxxx is user specific, but what does it mean exactly ?
2. JSON notification format: What is the connection between the dbid and user id from the users element.
3. Redis: In the docs it is mentioned that "we're keeping track of each user's OAuth access token and their latest cursor in Redis". Should I know the OAuth access token in advance, and store them separately in Redis, or this is something I should do based on the notification sent by Dbx webhook? If so, how can I do that ? Is it using the dbid ?
4. Pythod example: I'm not super familiar with python, but looking at your sample code in the doc page, it seems that after the notification is received, you are using the account elements and for each account you call the files_list_continue? Do you need the user ids at all ?
Thanks in advance for your time.
-victor