The ‘.’ at then end tells the uploader to put the file in the root directory of the app folder OR the root directory of your Dropbox account depending on how your app was configured. I created a text.txt file and used the following command to send that file to my Dropbox account. Find or create a small file to send to Dropbox. Looks ok? : yīTW – The token above is not real, don’t try to use it. > The access token is z32cbbVuFcAAAAAAAGHdGdakgA81ykAyTM_1GjW6PFuc67XzbYLhLTiwSmAZgQ. # Access token: z32cbbVuFcAAAAAAAGHdGdakgA81ykAyTM_1GjW6PFuc67XzbYLhLTiwSmAZgQ The next step may be the hardest part, you need to copy the token to the window where you are running the wizard. Click the Generate Access Token button to get an api token On the next page nothing needs to be changed. The name has to be unique to all Dropbox apps. On the next page click on Dropbox api, App folder (for limited access to a specific folder or full access) and then name the app. Now go to this URL in a browser (can be on a different computer) and click on Create app Under the 'Generated access token' section, then copy and paste the new access token here: When your new App is successfully created, please click on the Generate button This is the first time you run this script, please follow the instructions:ġ) Open the following URL in your Browser, and log in using your account: Ģ) Click on "Create App", then select "Dropbox API app"ģ) Now go on with the configuration, choosing the app permissions and access restrictions to your Dropbox folderĤ) Enter the "App Name" that you prefer (e.g. Then run the script the first time to run the $. Next, make the script runnable with the chmod command To start, get the script with this command There is a config file that is needed and the first time you run the script, a wizard will walk you through the creation process. It uses an application api and therefore you do not need to supply a username / password when using the script. ![]() This quick how-to is what you need to get started.ĭropbox-uploader.sh is a BASH script ( found here) that lets you interact with Dropbox from the command line. There is a tool that supports transfers to & from Dropbox but the setup requires a few coordinated steps. For an upcoming project I needed to upload files to Dropbox from the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |