Skip to content

Commit 0e8c5a6

Browse files
author
Federico Fissore
committed
updated temboo examples
1 parent f648715 commit 0e8c5a6

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

hardware/arduino/avr/libraries/Bridge/examples/Temboo/UploadToDropbox/UploadToDropbox.ino

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@
99
If you don't already have one, you can register for a free Temboo account at
1010
http://www.temboo.com
1111
12-
You'll also need a valid Dropbox account, and OAuth credentials for Dropbox. To
13-
obtain OAuth credentials for Dropbox, you'll need to register a Dropbox app at
14-
https://www.dropbox.com/developers/apps -- the app name and domain can be whatever
15-
you'd like. After registering the app, follow the instructions at
12+
You'll also need a valid Dropbox app and accompanying OAuth credentials.
13+
To create a Dropbox app, visit https://www.dropbox.com/developers/apps and
14+
do the following:
15+
16+
1. Create a "Dropbox API app"
17+
2. Select "Files and datastores"
18+
3. Select "Yes - my app only needs access to the files it creates."
19+
20+
Once you've created your app, follow the instructions at
1621
https://www.temboo.com/library/Library/Dropbox/OAuth/ to run the Initialize and Finalize
17-
OAuth Choreos to complete the OAuth handshake and retrieve your Access Token information.
22+
OAuth Choreos. These Choreos complete the OAuth handshake and retrieve your Dropbox OAuth access tokens.
1823
1924
This example assumes basic familiarity with Arduino sketches, and that your Yun is connected
2025
to the Internet.
@@ -96,7 +101,8 @@ void loop()
96101
UploadFileChoreo.addInput("FileName", "ArduinoTest.txt");
97102

98103
// next, the root folder on Dropbox relative to which the file path is specified.
99-
// unless you're using an in-production Dropbox app, this should be left as "sandbox"
104+
// to work with the Dropbox app you created earlier, this should be left as "sandbox"
105+
// if your Dropbox app has full access to your files, specify "dropbox"
100106
UploadFileChoreo.addInput("Root","sandbox");
101107

102108
// next, the Base64 encoded file data to upload

0 commit comments

Comments
 (0)