y¡úÌS[z
Dropbox-UploaderðgÁÄADropboxÉt@CðAbv[h·éB
Dropbox-UploaderÍDropbox Ì Datastore APIðgpµÄt@Cìð·éc[Å·B

yèz
- DropboxÌAJEgÌæ¾
- Dropbox-UploaderÌüè
- ANeBx[gÆÝè
- t@CðAbv[hµÄÝé
DropboxAJEgÌæ¾
DropboxÌAJEgðÁÄ��È��êAAJEgð澵ܵå¤B
�}¿ç©çADropboxÌAJEgðì��µÜ·i³¿Å·j
Dropbox-UploaderÌüè
Dropbox-UploaderðgitÌ|Wg©ç澵ܷB
/tmp fBNgÉgit©çcloneµÄAdropbox_uploader.shÉ Às Àð¯ܷB
$ cd /tmp $ sudo git clone https://github.com/andreafabrizi/Dropbox-Uploader/ $ cd Dropbox-Uploader $ sudo chmod 755 dropbox_uploader.sh
�}�}ÅÍA/usr/local/bin ÉVFðu«Ü·BipathªÊÁÄ��éÆ�}ëÉu��Ä�NÆÖÅ·j
$ sudo mv /tmp/Dropbox-Uploader/dropbox_uploader.sh /usr/local/bin/
ANeBx[gÆÝè
�}��ÄAANeBx[gìÆðs��ܷB
dropbox_uploader.shðÀsµÜ·B
$ cd /usr/local/bin/ $ ./dropbox_uploader.sh
Às·éÆȺÌæ¤È\¦ªÅÜ·B
$ ./dropbox_uploader.sh This is the first time you run this script. 1) Open the following URL in your Browser, and log in using your account: https://www.dropbox.com/developers/apps 2) Click on "Create App", then select "Dropbox API app" 3) Select "Files and datastores" 4) Now go on with the configuration, choosing the app permissions and access restrictions to your DropBox folder 5) Enter the "App Name" that you prefer (e.g. MyUploader84512395614070) Now, click on the "Create App" button. When your new App is successfully created, please type the App Key, App Secret and the Permission type shown in the confirmation page: # App key:
�}ÌóÔÅÒ@µÄ�N«AêxARaspberry Pið��êAuEUÅ3sÚÅwè³êÄ��éºLAhXÉANZXµÜ·B
https://www.dropbox.com/developers/apps
EãÉ éuCreate appv{^ðNbNµÜ·B
What type of app do you want to create?
@@uDropbox API appvðIð
What type of data does your app need to store on Dropbox?
@@uFiles and datastoresvðIð
Can your app be limited to its own folder?iANZXÂ\ÈÍÍj
@@��¸ê©D«ÈûðIðBiÍYesɵܵ½j
@@@@uYesvAvêpÌtH_ÌÝANZXÂ
@@@@uNovSÄÌtH_ÉANZXÂ
iãLÅNoðIðµ½êÌÝjWhat type of files does your app need access to?
@@ANZXÅ«ét@CÌíÞÉÂ��ÄA��¸ê©D«ÈûðIð
@@@@uSpecific file typesveLXg©Ê^Ìt@CÌÝ
@@@@uAll file types vSÄÌíÞÌt@C
Provide an app name, and you're on your way.
@@Av̼OFD«È¼OðüÍiDropboxÆ��¤ï¿½ï¿½ñÍÜßçêÈ��j
@@ÍuRaspiBoxvɵܵ½B
ÅãÉuCreate Appv{^ð·ÆAAvÌîñæÊÉÚèÜ·B
�}ÌæÊÉ éuApp keyvÆuApp secretvðT¦Ä�N«Ü·B
Raspberry PiÌæÙÇÒ@³¹Ä�N��½æÊÉàÇèAuApp keyvðü͵EnterL[ðµÜ·B
�}��ÄuApp secretvà·©êéÌÅA�}¿çàAæÙÇT¦½lðü͵EnterL[ðµÜ·B
ANZXÂ\ÈÍÍÉÂ��ÄAܽ·©êéÌÅAuavAvêpÌtH_ÌÝAufvSÄÌtH_A��¸ê©ðü͵ÄEnterðµÜ·B
# App key: *************** # App secret: ***************** # Permission type, App folder or Full Dropbox [a/f]: amFª\¦³êÜ·ÌÅAuyvðü͵EnterðµÜ·B
> App key is ***************, App secret is ***************** and Access level is App Folder. Looks ok? [y/n]: y
uApp keyvÆuApp secretvª³µ¯êÎAȺÌæ¤È\¦ª³êÜ·B
> Token request... OK Please open the following URL in your browser, and allow Dropbox Uploader to access your DropBox folder: --> https://www.dropbox.com/1/oauth/authorize?oauth_token=************* Press enter when done...
�}�}ÅA�}ÌæÊÍ�}ÌÜÜÒ@µÄ�N«AuEUÅUsÚÌ
URLihttps://www.dropbox.com/1/oauth/authorize?oauth_token=*************jÉANZXµÜ·B
ᎮA
uRaspiBox ª Dropbox ÉÛ��³êÄ��é AvARaspiBox tH_ÖÌANZXðNGXgµÄ��ܷBv
Æ��¤æʪoÜ·ÌÅAuÂvðNbNµÜ·B
uūܵ½I�}êÅ RaspiBox ³ñª È½Ì Dropbox ÆAgµÜµ½Bv
Æ\¦³êܵ½çARaspberry PiÉßèAEnterðµÜ·B
uSetup completed!vÆ\¦³êܵ½çA®¹Å·B
¿ÈÝÉAÝ誮¹·éÆAz[fBNgÉtokenªLü³ê½Bµt@Cªì��³êÜ·B
$ cd ~ $ sudo view .dropbox_uploader
t@CðAbv[hµÄÝé
��t@CðAbv[hµÄÝÜ·B
t@CðDropboxÉAbv[h·éÉÍAȺÌæ¤ÉR}hðÀsµÜ·B
$ dropbox_uploader.sh upload [[J̳t@C] [Abv[h·ét@C¼]
á¦ÎȺÌæ¤È�L��ŷB
$ dropbox_uploader.sh upload /tmp/aaa.txt aaa.txt
uploadÈOÉàAȺÌæ¤ÉíEÚ®ÈÇÌR}hà èÜ·B
- upload
- download
- delete
- move
- copy
- mkdir
- list
- share
- info
- unlink
ڵ��g��ûÍȺðQƵľ³ï¿½ï¿½B
https://github.com/andreafabrizi/Dropbox-Uploader
^OFRaspberry Pi
yRaspberry PiÌÅVLz