简体   繁体   English

我想从我的Java Web应用程序访问他们自己的保管箱的用户。 我怎样才能做到这一点?

[英]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.

相关问题 我想通过在当前应用程序中按一个按钮来终止/关闭特定应用程序。 我怎样才能做到这一点? - I want to kill/ close a particular app by pressing a button in my current app. How can I do this? 我想将聊天窗口/选项集成到我的 web 应用程序中。 我从哪说起呢? - I want to integrate a chat window/option into my web app. Where do I start? 我想在我的应用程序上进行 m3u8 直播。 那么任何人都可以帮助我如何做到这一点? 我尝试使用 exoplayer 但我失败了 - i want to do m3u8 live streaming on my app. So can anyone help me how can i do this ? i tried with exoplayer but i failed 如何在Java Web应用程序中创建可以从jsp中的表达式语言调用的函数? - How can I create my own functions that I can call from Expression Language in jsp in a Java web app? 使用Java的Dropbox Chooser从Dropbox选取文件后,如何将文件存储在服务器中? - How can I store the files in my server after picking the files from dropbox with the dropbox Chooser using java 我想将值从Java中的数组存储在我自己的类型的arrayList中。 我该怎么做 - I want to store values in an arrayList of my own type from an array in java. How do I do so 刷新浏览器-Java EE Web应用程序时看不到更改。 + Glassfish 4 + Netbeans + Java 7 + Mac OS- - Can't see the change when i refresh my browser - Java EE web app. + Glassfish 4 + Netbeans + Java 7 + Mac os- 如何在我的 Web App 上显示用户总数? - How do I display the total number of users on my Web App? 如何从 Spotify API 回调到我自己的应用程序? - How do I callback to my own app from Spotify API? 对于我的第一个简单Web应用程序的身份验证,我不知所措。 我正在使用JSF2.0 + Tomcat - I'm overwhelmed with authenticating users for my first simple web app. I'm using JSF2.0 + Tomcat
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM