简体   繁体   English

获取本地保管箱帐户信息C#

[英]Get local dropbox account info c#

I have dropbox installed in my Windows 7 system. 我在Windows 7系统中安装了保管箱。 Is there any way to programmatically retrieve the user email linked with the local dropbox account? 有什么方法可以通过编程方式检索与本地保管箱帐户链接的用户电子邮件? I am able to retrieve the folder location by scanning the host.db file in local application directory. 我可以通过扫描本地应用程序目录中的host.db文件来检索文件夹位置。

Yes ! 是的! you can programmatically retrieve the user email linked with the local dropbox account with the help of "/account/info". 您可以借助“ / account / info”以编程方式检索与本地保管箱帐户链接的用户电子邮件。

/account/info /帐户信息

  • DESCRIPTION : Retrieves information about the user's account. 描述:检索有关用户帐户的信息。
  • URL STRUCTURE: https://api.dropboxapi.com/1/account/info 网址结构: https//api.dropboxapi.com/1/account/info
  • METHOD : GET 方法:获取
  • PARAMETERS: locale - Use to specify language settings for user error messages and other language specific text. 参数:语言环境-用于为用户错误消息和其他特定于语言的文本指定语言设置。 See the notes above for more information about supported locales. 有关支持的语言环境的更多信息,请参见上面的注释。
  • RETURNS : User account information. 返回值:用户帐户信息。

    Sample JSON response { "uid": 12345678, "display_name": "John User", "name_details": { "familiar_name": "John", "given_name": "John", "surname": "User" }, "referral_link": " https://www.dropbox.com/referrals/r1a2n3d4m5s6t7 ", "country": "US", "locale": "en", "email": "john@example.com", "email_verified": false, "is_paired": false, "team": { "name": "Acme Inc.", "team_id": "dbtid:1234abcd" }, "quota_info": { "shared": 253738410565, "quota": 107374182400000, "normal": 680031877871 } } 样本JSON响应{“ uid”:12345678,“ display_name”:“ John User”,“ name_details”:{“ familiar_name”:“ John”,“ given_name”:“ John”,“ surname”:“ User”},“ Referral_link“:” https://www.dropbox.com/referrals/r1a2n3d4m5s6t7 “,” country“:” US“,” locale“:” en“,” email“:” john@example.com“,” email_verified“ :false,“ is_paired”:false,“ team”:{“名称”:“ Acme Inc.”,“ team_id”:“ dbtid:1234abcd”},“ quota_info”:{“ shared”:253738410565,“ quota”: 107374182400000,“正常”:680031877871}}

Return value definitions 返回值定义

field description 栏位说明

  • uid : The user's unique Dropbox ID. uid:用户的唯一Dropbox ID。
  • display_name : The user's display name. display_name:用户的显示名称。
  • name_details/given_name : The user's given name. name_details / given_name:用户的给定名称。
  • name_details/surname : The user's surname. name_details / surname:用户的姓。
  • name_details/familiar_name : The locale-dependent familiar name for the user. name_details / familiar_name:用户依赖于语言环境的熟悉名称。
  • referral_link : The user's referral link. Referral_link:用户的推荐链接。
  • country : The user's two-letter country code, if available. country:用户的两个字母的国家/地区代码(如果有)。
  • locale : Locale preference set by the user (eg en-us). locale:用户设置的语言环境首选项(例如,en-us)。
  • email : The user's email address. email:用户的电子邮件地址。
  • email_verified : If true, the user's email address has been verified to belong to that user. email_verified:如果为true,则已验证用户的电子邮件地址属于该用户。
  • is_paired : If true, there is a paired account associated with this user. is_paired:如果为true,则存在与此用户关联的配对帐户。
  • team : If the user belongs to a team, contains team information. team:如果用户属于团队,则包含团队信息。 Otherwise, null. 否则,为null。
  • team/name : The name of the team the user belongs to. team / name:用户所属团队的名称。
  • eam/team_id : The ID of the team the user belongs to. eam / team_id:用户所属团队的ID。 quota_info/normal The user's used quota outside of shared folders (bytes). quota_info / normal共享文件夹之外的用户使用的配额(字节)。
  • quota_info/shared : The user's used quota in shared folders (bytes). quota_info / shared:用户在共享文件夹中使用的配额(字节)。 If the user belongs to a team, this includes all usage contributed to the team's quota outside of the user's own used quota (bytes). 如果用户属于团队,则包括用户自己已使用的配额(字节)以外的所有贡献给团队配额的使用情况。
  • quota_info/quota : The user's total quota allocation (bytes). quota_info / quota:用户的总配额分配(字节)。 If the user belongs to a team, the team's total quota allocation (bytes). 如果用户属于团队,则该团队的总配额分配(字节)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM