首页 > 解决方案 > C# Dropbox 同步状态

问题描述

我正在将下拉框集成到我的 C# 应用程序中。我正在尝试检索投递箱同步状态,但在投递箱 API 中找不到任何方法来检索信息。有许多方法可用于检索用户信息和所有内容,但我找不到任何可以检索同步信息的方法。

我的代码如下:

//Retrieve dropbox sync state here
//Convert sync state to status code
switch (statusCode)
      {
        case 0:
          return "Not in dropbox";
        case 1:
          return "Sync state upto date";
        case 2:
          return "Synchronizing";
        case 3:
          return "Issue syncing";
        default:
          throw new IOException("Issue communicating with drop box");
      }

标签: c#dropbox-api

解决方案


不幸的是,Dropbox API 不提供检查桌面客户端同步状态的功能,但我会将其作为功能请求传递。我不能保证是否或何时可以实施。

一个例外是Linux 上的 Dropbox 桌面客户端仅支持某些命令行命令


推荐阅读