[英]I want to give access to users of their own dropbox from my java web app. How can I do that?
Right now I've created an app on dropbox, I called its APIs and made an Authentication Demo. 现在,我已经在Dropbox上创建了一个应用程序,我调用了它的API并进行了身份验证演示。 I generated Key and Secret from the dropbox site for my app.
我从保管箱网站为我的应用程序生成了密钥和秘密。 Here I've to give 'key' and 'secret' to the program.
在这里,我必须给程序提供“密钥”和“秘密”。 Now what I've to do is to give access to the user of their own dropbox account.
现在,我要做的就是授予其自己的保管箱帐户用户的访问权限。 Guide me to do this.
指导我这样做。 Thanks.
谢谢。
I took reference of [1]: http://ytotare.blogspot.in/2013/05/integration-with-dropbox-including.html 我参考了[1]:http: //ytotare.blogspot.in/2013/05/integration-with-dropbox-includes.html
To integrate with Dropbox in a Java app, the official Java SDK for the Dropbox API is recommended: 要与Java应用程序中的Dropbox集成,建议使用Dropbox API的官方Java SDK:
https://www.dropbox.com/developers/core/sdks/java https://www.dropbox.com/developers/core/sdks/java
Following the tutorial is a good way to get started: 遵循本教程是入门的好方法:
https://www.dropbox.com/developers/core/start/java https://www.dropbox.com/developers/core/start/java
The full documentation can be found here: 完整的文档可以在这里找到:
http://dropbox.github.io/dropbox-sdk-java/api-docs/v1.7.x/ http://dropbox.github.io/dropbox-sdk-java/api-docs/v1.7.x/
To let users connect to their own accounts, you have to implement the OAuth app authorization flow. 为了让用户连接到自己的帐户,您必须实施OAuth应用授权流程。 The tutorial linked above shows a simple version of it using
DbxWebAuthNoRedirect
. 上面链接的教程使用
DbxWebAuthNoRedirect
显示了它的简单版本。 Actual web apps, for example, will want to use DbxWebAuth
instead to streamline the process. 例如,实际的Web应用程序将希望使用
DbxWebAuth
来简化该过程。 The "web-file-browser" sample app included with the SDK is a good example to see this. SDK附带的“ web-file-browser”示例应用程序就是一个很好的例子。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.