aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorFederico Fissore <f.fissore@arduino.cc>2013-07-10 09:47:18 +0200
committerFederico Fissore <f.fissore@arduino.cc>2013-07-10 09:47:18 +0200
commit3c39763ced9b42222ce54e35dee04ae4a9a0afe4 (patch)
tree0107e24c8aa579d6851f8025dc56670cea20a298 /libraries
parentf9d79203dc671d3d0a03967067db6a6af2232e9f (diff)
updated temboo examples
Diffstat (limited to 'libraries')
-rw-r--r--libraries/Bridge/examples/Temboo/UploadToDropbox/UploadToDropbox.ino18
1 files changed, 12 insertions, 6 deletions
diff --git a/libraries/Bridge/examples/Temboo/UploadToDropbox/UploadToDropbox.ino b/libraries/Bridge/examples/Temboo/UploadToDropbox/UploadToDropbox.ino
index 2a40559..caecbe1 100644
--- a/libraries/Bridge/examples/Temboo/UploadToDropbox/UploadToDropbox.ino
+++ b/libraries/Bridge/examples/Temboo/UploadToDropbox/UploadToDropbox.ino
@@ -9,12 +9,17 @@
If you don't already have one, you can register for a free Temboo account at
http://www.temboo.com
- You'll also need a valid Dropbox account, and OAuth credentials for Dropbox. To
- obtain OAuth credentials for Dropbox, you'll need to register a Dropbox app at
- https://www.dropbox.com/developers/apps -- the app name and domain can be whatever
- you'd like. After registering the app, follow the instructions at
+ You'll also need a valid Dropbox app and accompanying OAuth credentials.
+ To create a Dropbox app, visit https://www.dropbox.com/developers/apps and
+ do the following:
+
+ 1. Create a "Dropbox API app"
+ 2. Select "Files and datastores"
+ 3. Select "Yes - my app only needs access to the files it creates."
+
+ Once you've created your app, follow the instructions at
https://www.temboo.com/library/Library/Dropbox/OAuth/ to run the Initialize and Finalize
- OAuth Choreos to complete the OAuth handshake and retrieve your Access Token information.
+ OAuth Choreos. These Choreos complete the OAuth handshake and retrieve your Dropbox OAuth access tokens.
This example assumes basic familiarity with Arduino sketches, and that your Yun is connected
to the Internet.
@@ -96,7 +101,8 @@ void loop()
UploadFileChoreo.addInput("FileName", "ArduinoTest.txt");
// next, the root folder on Dropbox relative to which the file path is specified.
- // unless you're using an in-production Dropbox app, this should be left as "sandbox"
+ // to work with the Dropbox app you created earlier, this should be left as "sandbox"
+ // if your Dropbox app has full access to your files, specify "dropbox"
UploadFileChoreo.addInput("Root","sandbox");
// next, the Base64 encoded file data to upload