[英]How can i get the members of a Dropbox shared folder programmatically using c#?
I want to get or find all the members of a shared folder from a Dropbox account. 我想从Dropbox帐户中获取或找到共享文件夹的所有成员。 Currently I'm using DropNet, but there is no such option i found.
目前,我正在使用DropNet,但没有找到这样的选项。
Dropbox API当前没有任何方法以编程方式获取共享文件夹成员的列表。
Use Spring Social dropbox framework for .Net. 使用适用于.Net的Spring Social投寄箱框架 。 They have already provided some examples in it.
他们已经提供了一些示例。 In one of the example they have provided the code for listing all files for a particular type.
在一个示例中,他们提供了用于列出特定类型的所有文件的代码。
Additional Code: 附加代码:
//After creating dropbox service use the following code
//Following code searches the root folder, file of type "all" including subfolders
//To search a particular folder write the path in the first parameter of SearchAsync Method
//To list only "txt" files write ".txt" for the second parameter
dropbox.SearchAsync("", ".").ContinueWith(task =>
{
Console.WriteLine(task.Result.Count);
foreach (Entry file in task.Result)
{
Console.WriteLine(file.Path); //prints path
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.