You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`<name>` (_required_) - A unique name for this connector.
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.
2
+
-`<remote-url>` (_required_) - The remote URL to the target subfolder inside of the app folder for the Dropbox app.
3
+
- Set `recursive` to `true` to recursively process data from subfolders within the target subfolder. The default is `false` if not otherwise specified.
4
+
-`<app-key>` (_required_) - The app key for your Dropbox app. This allows Unstructured to automatically replace expired access tokens.
5
+
-`<app-secret>` (_required_) - The app secret for your Dropbox app. This allows Unstructured automatically to replace expired access tokens.
6
+
-`<refresh-token>` (_required_) - The refresh token for the Dropbox app. This allows Unstructured to automatically replace expired access tokens.
Copy file name to clipboardExpand all lines: snippets/general-shared-text/dropbox-cli-api.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,10 @@ import AdditionalIngestDependencies from '/snippets/general-shared-text/ingest-d
11
11
The following environment variables:
12
12
13
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).
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).
15
+
Provide this only if for some reason you do not want Unstructured to automatically refresh expired access tokens.
15
16
16
-
To have Unstructured refresh expired Dropbox App access tokens on your behalf, you must also provide the following environment variables:
17
+
To have Unstructured automatically refresh expired Dropbox App access tokens on your behalf, do not provide an access token. Instead, provide the following environment variables:
17
18
18
19
-`DROPBOX_REFRESH_TOKEN` - The value of the refresh token for the corresponding access token, represented by `--refresh-token` (CLI) or `refresh_token` (Python).
19
20
-`DROPBOX_APP_KEY` - The app key for the Dropbox app, represented by `--app-key` (CLI) or `app_key` (Python).
Copy file name to clipboardExpand all lines: snippets/general-shared-text/dropbox.mdx
+20-13Lines changed: 20 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,9 @@ allowfullscreen
35
35
If you do not already have the corresponding refresh token for an existing access token, or if you lose a refresh token after you generate it,
36
36
you must generate a new access token and its corresponding refresh token.
37
37
38
-
For [Unstructured Ingest](/ingestion/overview), instead of continualy replacing expired access tokens yourself, you can have Unstructured do it for you as needed; just supply Unstructured
39
-
with the original access token and its corresponding refresh token along with the Dropbox app's **App key** and **App secret** values.
40
-
To learn how to supply these to Unstructured, look for mentions of "access token, "refresh token," "app key," and "app secret" in the connector settings later in this article.
41
-
42
-
For the [Unstructured UI](/ui/overview) or the [Unstructured API](/api-reference/overview), or if you want to otherwise use the refresh token to replace the expired access token yourself, currently you must manually replace expired access tokens.
38
+
Instead of continualy replacing expired access tokens yourself, you can have Unstructured do it for you as needed; just supply Unstructured
39
+
with the refresh token along with the Dropbox app's **App key** and **App secret** values.
40
+
To learn how to supply these to Unstructured, look for mentions of "refresh token," "app key," and "app secret" in the connector settings later in this article.
43
41
</Warning>
44
42
45
43
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**
@@ -66,7 +64,7 @@ allowfullscreen
66
64
67
65
Dropbox app access tokens are valid for **only four hours**. After this time, you can no longer use the expired access token.
68
66
69
-
To replace an old, expired access token with a new, valid one, do the following:
67
+
To have Unstructured automatically replace expired access tokens on your behalf, do the following:
70
68
71
69
1. Get the app key and app secret values for your Dropbox app. To do this:
72
70
@@ -101,16 +99,25 @@ To replace an old, expired access token with a new, valid one, do the following:
101
99
102
100
7. In the response, copy the following two values:
103
101
104
-
- The value of `access_token` (starting with the characters `sl`) is the new, valid access token. In your Dropbox connector settings, replace the old,
105
-
expired access token value with this new, valid access token value.
106
-
- The value of `refresh_token` is the refresh token that you can use to replace this access token much faster and easier next time.
102
+
- The value of `access_token` (starting with the characters `sl`) is the new, valid access token.
103
+
- The value of `refresh_token` is the refresh token that can be used to replace this access token much faster and easier next time.
107
104
If you lose this refresh token, you must go back to Step 2.
108
105
109
-
For [Unstructured Ingest](/ingestion/overview), if you want Unstructured to use this refresh token to automatically replace the expired access token instead of replacing it yourself, then
110
-
simply supply Unstructured with these `access_token` and `refresh_token` values, along with the `<app-key>` and `<app-secret>` values
111
-
as described earlier in this procedure, and then stop here.
106
+
For the [Unstructured UI](/ui/overview), if you want Unstructured to use this refresh token to automatically replace the expired access token instead of replacing it yourself, then
107
+
add the following values to your connector settings, and then stop here:
108
+
109
+
- Add the `refresh_token` value to the connector settings **Refresh token** field.
110
+
- Add the `<app-key>` value to the connector settings **App key** field.
111
+
- Add the `<app-secret>` value to the connector settings **App secret** field.
112
+
113
+
For the [Unstructured API](/api-reference/overview) and [Unstructured Ingest](/ingestion/overview), if you want Unstructured to use this refresh token to automatically replace the expired access token instead of replacing it yourself, then
114
+
add the following values to your connector settings, and then stop here:
115
+
116
+
- Add the `refresh_token` value to the `refresh_token` parameter.
117
+
- Add the `<app-key>` value to the `app_key` parameter.
118
+
- Add the `<app-secret>` value to the connector settings `app_secret` parameter.
112
119
113
-
8.For the [Unstructured UI](/ui/overview) or the [Unstructured API](/api-reference/overview), or if you want to otherwise use the refresh token to replace the expired access token yourself, make the following REST API call, replacing the following placeholders:
120
+
8.If for some reason you need to manually replace the expired access token yourself instead of having Unstructured do it for you, you can use the refresh token that you just copied to get a new access token:
114
121
115
122
- Replace `<refresh-token>` with the refresh token.
116
123
- Replace `<app-key>` with the app key for your Dropbox app.
0 commit comments