0
我想从Dropbox帐户获取或查找共享文件夹的所有成员。目前我使用DropNet,但没有找到这样的选项。如何以编程方式使用c#获得Dropbox共享文件夹的成员?
我想从Dropbox帐户获取或查找共享文件夹的所有成员。目前我使用DropNet,但没有找到这样的选项。如何以编程方式使用c#获得Dropbox共享文件夹的成员?
Dropbox API目前没有任何方式以编程方式获取共享文件夹成员列表。
对于.Net使用Spring Social dropbox framework。他们已经提供了一些例子。在其中的一个例子中,他们提供了列出特定类型的所有文件的代码。
附加代码:
//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
}
});