Sorry Cyril for the late reply. Forgot my Kobo on the plane, took me a while to get it back
I found out the errors in my previous post. Multi line comments and Dropbox short lived access tokens. Here are the renewed steps from scratch:
Use this new zip file notes20250521.zip attached in this message.
🔧 Step 1: Create a Dropbox App
- Go to: Dropbox App Console
- Click "Create App"
- Choose: Scoped access and App Folder
- Set permissions: Enable these: files.content.write and files.content.read
- ✅ Save App Key and App Secret for the script!
🔑 Step 2: Get a Refresh Token (ONE-TIME manual setup)
You need to log in and approve access.
- Visit this URL in your computer browser, with your App Key:
Code:
https://www.dropbox.com/oauth2/authorize?client_id=YOUR_APP_KEY&response_type=code&token_access_type=offline
- Log in and allow access
- It redirects to a page 'ACCESS CODE GENERATED'. Copy the code.
- Now exchange it for a refresh token using this command:
* If you don't have curl on your computer, you can use the curl in notes folder by telnetting to your Kobo device.
- The output will include:
Code:
"refresh_token": "YOUR_REFRESH_TOKEN_HERE"
- ✅ Save this refresh_token for the script!
Sorry for being so complicated but dropbox is a headache. Hopefully it will work this time; mine works succesfully.