Apps
top-level folder in your Dropbox
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.Apps
top-level folder. For example, if the value of the App folder name
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
my-folder
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
can be found under https://dropbox.com/home/Apps/my-folder/data
dropbox://<subfolder-name>
. For example,
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
the remote URL is dropbox://data
<app-key>
with the app key for your Dropbox app:
<app-key>
with the app key for your Dropbox app.<app-secret>
with the app secret for your Dropbox app.<access-code>
with the access code that you just copied.access_token
(starting with the characters sl
) is the new, valid access token.refresh_token
is the refresh token that can be used to replace this access token much faster and easier next time.
If you lose this refresh token, you must go back to Step 2.refresh_token
value to the connector settings Refresh token field.<app-key>
value to the connector settings App key field.<app-secret>
value to the connector settings App secret field.refresh_token
value to the refresh_token
parameter.<app-key>
value to the app_key
parameter.<app-secret>
value to the connector settings app_secret
parameter.<refresh-token>
with the refresh token.<app-key>
with the app key for your Dropbox app.<app-secret>
with the app secret for your Dropbox app.access_token
(starting with the characters sl
) is the new, valid access token. In the connector, replace the old,
expired access token value with this new, valid access token value.
refresh_token
is the new, valid refresh token. To replace the expired access token yourself, go back to Step 8.
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).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).
Provide this only if for some reason you do not want Unstructured to automatically refresh expired access tokens.DROPBOX_REFRESH_TOKEN
- The value of the refresh token for the corresponding access token, represented by --refresh-token
(CLI) or refresh_token
(Python).DROPBOX_APP_KEY
- The app key for the Dropbox app, represented by --app-key
(CLI) or app_key
(Python).DROPBOX_APP_SECRET
- The app secret for the Dropbox app, represented by --app-secret
(CLI) or app_secret
(Python).--partition-by-api
option (CLI) or partition_by_api
(Python) parameter to specify where files are processed:
--partition-by-api
(CLI) or partition_by_api
(Python), or explicitly specify partition_by_api=False
(Python).
Local file processing does not use an Unstructured API key or API URL, so you can also omit the following, if they appear:
--api-key $UNSTRUCTURED_API_KEY
(CLI) or api_key=os.getenv("UNSTRUCTURED_API_KEY")
(Python)--partition-endpoint $UNSTRUCTURED_API_URL
(CLI) or partition_endpoint=os.getenv("UNSTRUCTURED_API_URL")
(Python)UNSTRUCTURED_API_KEY
and UNSTRUCTURED_API_URL
--partition-by-api
(CLI) or partition_by_api=True
(Python).
Unstructured also requires an Unstructured API key and API URL, by adding the following:
--api-key $UNSTRUCTURED_API_KEY
(CLI) or api_key=os.getenv("UNSTRUCTURED_API_KEY")
(Python)--partition-endpoint $UNSTRUCTURED_API_URL
(CLI) or partition_endpoint=os.getenv("UNSTRUCTURED_API_URL")
(Python)UNSTRUCTURED_API_KEY
and UNSTRUCTURED_API_URL
, representing your API key and API URL, respectively.https://api.unstructuredapp.io/general/v0/general
, which is the API URL for the Unstructured Partition Endpoint. However, you should always use the URL that was provided to you when your Unstructured account was created. If you do not have this URL, contact Unstructured Sales at sales@unstructured.io.If you do not have an API key, get one now.If the Unstructured API is self-hosted, the process
for generating Unstructured API keys, and the Unstructured API URL that you use, are different.
For details, contact Unstructured Sales at
sales@unstructured.io.