使用Dropbox的API,只有访问令牌 [英] Using Dropbox API with access token only

查看:433
本文介绍了使用Dropbox的API,只有访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要做的无声上传,未经授权的需要。我已经授权我的应用程序,我有我的访问令牌(它的Dropbox现在可以在它的帐目应用程序设置它展示给你)。我只是想用某种形式的API的应用程序没有秘密的应用程序键和Dropbox的沟通,为那些已经给了我的访问令牌。我试过REST,Dropnet,SharpBox。使用C#。任何帮助AP preciated。 :)

I want to do silent uploads, without the need of authorization. I've already authorized my app, I've got my access token (which Dropbox now can show it to you in it's account app settings). I just want to use some form of API to communicate with Dropbox without app secret and app key, as those already gave me access token. I've tried REST, Dropnet, SharpBox. Using C#. Any help appreciated. :)

推荐答案

在文件上传Dropbox的API文档是在这里:的 https://www.dropbox.com/developers/core/docs#files_put

The dropbox API documentation on file uploading is here: https://www.dropbox.com/developers/core/docs#files_put

要使用,你必须把它当你的上传请求的HTTP头的访问令牌,你的头应该包括这样的:

To use the access token you have to put it in the HTTP Headers when you make the upload request, your header should include like this:

Authorization: Bearer <myToken>

然后Dropbox的权威性会使用在头中找到的标记和上传文件。

Then Dropbox will auth using the token found in the header and upload the file.

这篇关于使用Dropbox的API,只有访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆