Hi,
I set up a notification system to get notified when there are changes to my dropbox account.
The following is a code excerpt
def process_user(account):
# cursor for the user (None the first time)
cursor = redis_client.hget('cursors', account)
dbx = Dropbox(ACCESS_TOKEN)
has_more = True
while has_more:
if cursor is None:
result = dbx.files_list_folder(path='', recursive=True)
print(f'RESULT WHEN CURSOR WAS NONE: {result}')
else:
result = dbx.files_list_folder_continue(cursor)
print(f'RESULT WHEN WAS CURSOR: {result}')
for entry in result.entries:
print(entry)
send_notification('entry')
# Update cursor
cursor = result.cursor
redis_client.hset('cursors', account, cursor)
# Repeat only if there's more to do
has_more = result.has_more
However, when I make edits to data in folders, this is what files_list_folder_continue returns:
ListFolderResult(cursor='AAFZsPF8zLH6ZKF2EXhPnqhXR5OhP-0ydWr8wx3hph4byo7wTdJytQCwIY7x8JeXI01j1x417_VNyrOrFmNyx8-CUghuHeCxrrkZZXRmMBgStDBJy-XEqKEeXIcyJ0iMvxdSI_hnDPdRcvEL1esHLHr5L1JYjx9RLis8nNqWG_MJH4dwjWZd3hJIM2hTGHSV_1A', entries=[], has_more=False)
The entry array is empty. How am I supposed to know what was edited? What can I change so that I get the data for edits in folders?
Thank you