Skip to content

Commit a7be5f3

Browse files
authored
Dropbox connectors: fix broken how-to instructions (#443)
1 parent e86c72d commit a7be5f3

File tree

6 files changed

+41
-25
lines changed

6 files changed

+41
-25
lines changed
16.5 KB
Loading
15.1 KB
Loading
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
- `<name>` (_required_) - A unique name for this connector.
2-
- `<token>` - The value of your access token
3-
- `<remote-url>` - The remote URL to the target folder
4-
- Set `recursive` to `true` to recursively process data from subfolders within the target folder. The default is `false` if not otherwise specified.
2+
- `<token>` - The value of the access token for the Dropbox app that is associated with the target app folder.
3+
- `<remote-url>` - The remote URL to the target subfolder inside of the app folder for the Dropbox app.
4+
- Set `recursive` to `true` to recursively process data from subfolders within the target subfolder. The default is `false` if not otherwise specified.

snippets/general-shared-text/dropbox-cli-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ import AdditionalIngestDependencies from '/snippets/general-shared-text/ingest-d
1010

1111
The following environment variables:
1212

13-
- `DROPBOX_ACCESS_TOKEN` - The value of your access token, represented by `--token` (CLI) or `token` (Python).
14-
- `DROPBOX_REMOTE_URL` - The remote URL to the target folder, represented by `--remote-url` (CLI) or `remote_url` (Python).
13+
- `DROPBOX_REMOTE_URL` - The remote URL to the target subfolder inside of the app folder for the Dropbox app, represented by `--remote-url` (CLI) or `remote_url` (Python).
14+
- `DROPBOX_ACCESS_TOKEN` - The value of the access token for the Dropbox app that is associated with the target app folder, represented by `--token` (CLI) or `token` (Python).
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Fill in the following fields:
22

33
- **Name** (_required_): A unique name for this connector.
4-
- **Data URL** (_required_): The URL to the target Dropbox directory, starting with `dropbox://`.
5-
- **Recursive** (source connector only): Check this box to also process all subfolders and their files within the directory.
6-
- **Access token** : A Dropbox access token for the target account.
4+
- **Data URL** (_required_): The URL to the target subfolder inside of the app folder for the Dropbox app, starting with `dropbox://`.
5+
- **Recursive** (source connector only): Check this box to also process all child folders and their files within the subfolder.
6+
- **Access token** : The access token for the Dropbox app that is associated with the target app folder.
Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
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:
103

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/>
1517

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`
1920

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+
![The my-folder app folder under the Apps top-level folder](/img/connectors/dropbox-app-folder.png)
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+
![The data subfolder under the my-folder subfolder](/img/connectors/dropbox-app-subfolder.png)
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+
![The data subfolder under the my-folder subfolder](/img/connectors/dropbox-app-subfolder.png)

0 commit comments

Comments
 (0)