首页 文章

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

提问于
浏览
2

我在Windows 7系统中安装了Dropbox . 有没有办法以编程方式检索与本地保管箱帐户链接的用户电子邮件?我可以通过扫描本地应用程序目录中的host.db文件来检索文件夹位置 .

1 回答

  • 0

    是的!您可以在“/ account / info”的帮助下以编程方式检索与本地保管箱帐户关联的用户电子邮件 .

    /帐户信息

    • 说明:检索有关用户帐户的信息 .

    • 网址结构:https://api.dropboxapi.com/1/account/info

    • 方法:GET

    • PARAMETERS:locale - 用于指定用户错误消息和其他语言特定文本的语言设置 . 有关支持的区域设置的详细信息,请参阅上面的注释 .

    • RETURNS:用户帐户信息 .

    样品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 ", "国家": "美国", "区域": "连接", "电子邮件": " 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}}

    返回值定义

    字段描述

    • uid:用户唯一的Dropbox ID .

    • display_name:用户的显示名称 .

    • name_details / given_name:用户的给定名称 .

    • name_details / surname:用户的姓氏 .

    • name_details / familiar_name:用户熟悉的与语言环境相关的名称 .

    • referral_link:用户的推荐链接 .

    • country:用户的双字母国家/地区代码(如果有) .

    • locale:用户设置的区域设置首选项(例如en-us) .

    • email:用户的电子邮件地址 .

    • email_verified:如果为true,则表明用户的电子邮件地址已经过验证,属于该用户 .

    • is_paired:如果为true,则会有与此用户关联的配对帐户 .

    • team:如果用户属于某个团队,则包含团队信息 . 否则,为null .

    • team / name:用户所属团队的名称 .

    • eam / team_id:用户所属团队的ID . quota_info / normal用户在共享文件夹之外使用的配额(字节) .

    • quota_info / shared:用户's used quota in shared folders (bytes). If the user belongs to a team, this includes all usage contributed to the team'在用户自己使用的配额(字节)之外的配额 .

    • quota_info / quota:用户's total quota allocation (bytes). If the user belongs to a team, the team'的总配额分配(字节) .

相关问题