Skip to content

Commit 9338514

Browse files
authored
Dropbox source connector: add video link for refresh tokens; update curl command example for refresh tokens (#630)
1 parent e590b32 commit 9338514

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

snippets/general-shared-text/dropbox.mdx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ Dropbox app access tokens are valid for **only four hours**. After this time, yo
6666

6767
To have Unstructured automatically replace expired access tokens on your behalf, do the following:
6868

69+
<iframe
70+
width="560"
71+
height="315"
72+
src="https://www.youtube.com/embed/PZyRgpPNEUs"
73+
title="YouTube video player"
74+
frameborder="0"
75+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
76+
allowfullscreen
77+
></iframe>
78+
6979
1. Get the app key and app secret values for your Dropbox app. To do this:
7080

7181
a) Sign in to the [Dropbox Developers](https://www.dropbox.com/developers) portal with the same credentials as your Dropbox account.<br/>
@@ -86,15 +96,16 @@ To have Unstructured automatically replace expired access tokens on your behalf,
8696
6. Use the [curl](https://curl.se/) utility in your Terminal or Command Prompt, or use a REST API client such as
8797
[Postman](https://www.postman.com/product/api-client/), to make the following REST API call, replacing the following placeholders:
8898

89-
- Replace `<access-code>` with the access code that you just copied.
9099
- Replace `<app-key>` with the app key for your Dropbox app.
91100
- Replace `<app-secret>` with the app secret for your Dropbox app.
101+
- Replace `<access-code>` with the access code that you just copied.
92102

93103
```text
94-
curl https://api.dropbox.com/oauth2/token \
95-
--data code=<access-code> \
96-
--data grant_type=authorization_code \
97-
--user <app-key>:<app-secret>
104+
curl --location --request POST 'https://api.dropbox.com/oauth2/token' \
105+
--user '<app-key>:<app-secret>' \
106+
--header 'Content-Type: application/x-www-form-urlencoded' \
107+
--data-urlencode 'code=<access-code>' \
108+
--data-urlencode 'grant_type=authorization_code' \
98109
```
99110

100111
7. In the response, copy the following two values:

0 commit comments

Comments
 (0)