We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
dolphin_cloudsf
7 years agoExplorer | Level 4
web hook handling
hi , when a chnage happend i recived a notification. at first as i know i need to return 200 to verify the notification recived. then when i make a nother change i am calling var res22 = clien...
dolphin_cloudsf
7 years agoExplorer | Level 4
Hi Greg ,
for your questions:
- nothing returnning any entries :(
i want to verify i am doing all thinks right.
1. when i get a notification i need to return an answer with status of 200 in 10 sec.
then i am doing another change in dropbox and i am calling :
var res2 = client.AsMember(null).Files.ListFolderGetLatestCursorAsync("");
and then to
var res4 = client.AsMember(null).Files.ListFolderContinueAsync(res22.Result.Cursor);
no result of changes .file or folder.
questions:
- what is the maxsimum time that i have to call the listFolderContinue to get the changes.
- how do i know i am using the right Cursor?
if i am calling (.ListFolderGetLatestCursorAsync) - is that OK?
do you have some sample code in C# that maybe i can test it .
i really need to get it to work .
thanks from advance
dolphin_cloudsf
7 years agoExplorer | Level 4
Thnak you greg for your help -
ok greg i manage to get the changes from dropbox.
but now i have another question if i can :).
1. when i renmae a file i get 2 notifications
- deleted metadata
- file Metadata
questions:
1. how do i know the relations between the two?
2. if i am getting two file renamed - so actually i get 2 notification for deleted metadata and 2 notifications for file metadata .
i do i know who belong to who?
3. in the object there are to objects (as deleted , as file ) that are both recursice and looping . so if i want to serelize the object it is not possible . i am using nuget version 4.7.0 - is this issue fix later on ?
hope you can help me as soon as possible
is there any chnage we can continue this by email ?
waiting for your input
- Greg-DB7 years ago
Dropbox Community Moderator
1. When you receive a DeletedMetadata, it will contain a PathLower value. That's the path at which the item used to exist.
You should look up that entry in whatever local state you're maintaing and remove it.
When you receive a FileMetadata, it will contain an Id value. You can compare that to previous entries that you had to see if it was moved/renamed from another location.
2. File IDs are unique, so as above, you can use them to identify different files across move/rename operations.
3. I'm not sure I understand this question. Can you clarify?
If you would prefer to get API support privately over email, you can open an API ticket here instead.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 2 days ago
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 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!