dropbox
This article will teach you the bare minimum you need to know in order to start creating apps on top of the Dropbox API.
本文将教您一些基本知识,以便您开始在Dropbox API之上创建应用程序。
Once you’ve read it, you can also check out our free course on the Dropbox API if you’re interested in learning more. In that course, you’ll learn how to build an expense organizer app using modern JavaScript.
阅读后,如果您有兴趣了解更多信息,还可以查看有关Dropbox API的免费课程 。 在该课程中,您将学习如何使用现代JavaScript构建费用管理器应用。
This article uses JavaScript for its examples, however, the SDKs are very similar across languages, so even if you’re for example a Python developer, it should still be relevant.
本文使用JavaScript作为示例,但是,各语言之间的SDK非常相似,因此,即使您是Python开发人员,它也应具有相关性。
设置 (The setup)
In order to build on top of Dropbox, you first need a Dropbox account. After you’ve registered, head over to the developer section. Choose My apps on the lefthand side of the dashboard and click Create app.
为了在Dropbox之上构建,首先需要一个Dropbox 帐户 。 注册后,请转到开发人员部分。 在信息中心的左侧选择我的应用 ,然后点击创建应用 。
Choose the following settings, and give your app a unique name.
选择以下设置,并为您的应用指定唯一的名称。
Preferred settings for this tutorial
本教程的首选设置
In the dashboard, go to OAuth 2 section under Generated access token and click the Generate
button to get an API accessToken
, which we will save for later.
在仪表板中,转到“ 生成的访问令牌”下的OAuth 2部分,然后单击“ Generate
按钮以获取API accessToken
,我们将保存该API供以后使用。
Now, let’s install the Dropbox desktop app. Log in to the app with your new developer credentials and you should be able to see a folder with the same name as your newly created app. In my case, it’s LearnDbxIn5Minutes
.
现在,让我们安装Dropbox桌面应用程序 。 使用新的开发人员凭据登录到该应用程序,您应该能够看到一个与您新创建的应用程序名称相同的文件夹。 就我而言,它是LearnDbxIn5Minutes
。
Drop some files and images into the folder, so we can access them via our API.
将一些文件和图像拖放到该文件夹中,以便我们可以通过我们的API访问它们。