Hi. I'm using webhooks to monitor files/folders changes.
For personal accounts all is good, I manage to do it, but I do have issues with Team accounts.
First of all, I do have console app which is for using the Business API and do have member file access permission.
On login I do save teamId, teamAdminId and the token locally. Also I do keep the cursor locally, and geting it using Team.AsAdmin("{teamAdminId }").ListFolderGetLatestCursorAsync() on first login/authorization with the console app.
On webhook event, I do receive it in this format:
{
"list_folder": {
"teams": {
"dbtid:xxxx": [
"dbmid:xxxx",
"dbmid:xxxx",
"dbmid:xxxx"
]
}
},
"delta": {
"teams": {
"dbtid:xxxx": [
"dbmid:xxxx",
"dbmid:xxxx",
"dbmid:xxxx"
]
}
}
}
Based on the change for specific teamId, I do try to use the implementation of .NET SDK
using (DropboxTeamClient teamClient = new DropboxTeamClient(accessToken))
{
var folderResult = await teamClient.AsAdmin(adminId).Files.ListFolderContinueAsync(cursor);
}
I do always get empty Entries under folderResult response , after each webhook.
First, is it possible to read file changes for Team folders?
Can you please help me and let me know what I'm doing wrong?
Thanks!