|
1 | | -<iframe |
2 | | -width="560" |
3 | | -height="315" |
4 | | -src="https://www.youtube.com/embed/yY9uuSe2UC4" |
5 | | -title="YouTube video player" |
6 | | -frameborder="0" |
7 | | -allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
8 | | -allowfullscreen |
9 | | -></iframe> |
| 1 | +1. A [Dropbox account](https://www.dropbox.com/try/teams). |
| 2 | +2. A Dropbox app for your Dropbox account. To create a Dropbox app, do the following: |
10 | 3 |
|
11 | | -- A [Dropbox account](https://www.dropbox.com/try/teams). |
12 | | -- A target source or destination [folder](https://help.dropbox.com/create-upload/creating-using-folders-on-dropbox) in your Dropbox account. |
13 | | -- A Dropbox app for your Dropbox account. To learn how to create an app, click the **App Console** tab on the [Getting Started](https://www.dropbox.com/developers/reference/getting-started) page. |
14 | | -- Permission for your Dropbox app to read from, and write to, the target folder in your Dropbox account as needed. To do this: |
| 4 | + a) Sign in to the [Dropbox Developers](https://www.dropbox.com/developers) portal with the same credentials as your Dropbox account.<br/> |
| 5 | + b) Open your [App Console](https://www.dropbox.com/developers/apps).<br/> |
| 6 | + c) Click **Create app**.<br/> |
| 7 | + d) For **Choose an API**, select **Scoped access**.<br/> |
| 8 | + e) For **Choose the type of access you need**, select **App folder**.<br/> |
| 9 | + f) Enter a name for your app, and then click **Create app**.<br/> |
| 10 | + g) On the app's **Permissions** tab, under **Files and folders**, check the boxes labelled **files.content.read** or **files.content.write** or both, |
| 11 | + depending on whether you want to read files, write files, or both. Then click **Submit**.<br/> |
| 12 | + h) On the app's **Settings** tab, note the value of the **App folder name** field. This is the name of the app folder that Dropbox will create under the `Apps` top-level folder in your Dropbox |
| 13 | + account that the Dropbox app will use for access. If you change the value of **App folder name** field here, Dropbox will create an app folder with that name under the `Apps` top-level folder instead.<br/> |
| 14 | + i) Under **OAuth 2**, next to **Generated access token**, click **Generate**. Copy the value of this access token. You should only click **Generate** after you have completed all of the preceding steps first. |
| 15 | + This is because the access token is scoped to the specific app folder and settings at the time the access token is generated. If you change the app folder name or any of the permissions later, |
| 16 | + you should regenerate the access token.<br/> |
15 | 17 |
|
16 | | - - On the **Permissions** tab of your Dropbox app, check the boxes **files.content.read** or **files.content.write** or both. [Learn more](https://developers.dropbox.com/oauth-guide). |
17 | | - - On the **Settings** tab of your Dropbox app, for **App folder name**, set the name of the target folder in your Dropbox account for your Dropbox app to have access to. |
18 | | - - Note the remote URL to the target folder, which takes the format `dropbox://<path/to/folder/in/account>`. |
| 18 | +3. The app folder that your Dropbox app will use for access can be found in your Dropbox account under the `Apps` top-level folder. For example, if the value of the **App folder name** |
| 19 | + field above is `my-folder`, then the app folder that your Dropbox app will use for access can be found under `https://dropbox.com/home/Apps/my-folder` |
19 | 20 |
|
20 | | -- An [access token](https://dropbox.tech/developers/generate-an-access-token-for-your-own-account) for your Dropbox account. Save this token in a secure location. Do not share it with others. |
| 21 | +  |
| 22 | + |
| 23 | + <Warning> |
| 24 | + Your Dropbox app will _not_ have access to upload or download files from the root of the app folder. Instead, you _must_ create a subfolder inside of the app folder for your Dropbox |
| 25 | + app to upload or download files from. You will use the name of that subfolder when specifying your remote URL in the next step. For example, if your Dropbox app uses an app folder named `my-folder` |
| 26 | + for access within the `Apps` top-level folder, and you create a subfolder named `data` within the `my-folder` app folder, then the subfolder that your Dropbox app will upload and download files from |
| 27 | + can be found under `https://dropbox.com/home/Apps/my-folder/data` |
| 28 | + |
| 29 | +  |
| 30 | + </Warning> |
| 31 | + |
| 32 | +4. Note the remote URL to your subfolder inside of the app folder, which takes the format `dropbox://<subfolder-name>`. For example, |
| 33 | + if your Dropbox app uses an app folder named `my-folder` for access within the `Apps` top-level folder, and you create a subfolder named `data` within the `my-folder` app folder, then |
| 34 | + the remote URL is `dropbox://data` |
| 35 | + |
| 36 | +  |
0 commit comments