View Single Post
Old 05-21-2025, 02:41 PM   #54
febalci
Member
febalci began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Oct 2019
Device: none
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:
    Code:
    curl -X POST https://api.dropboxapi.com/oauth2/token \
      -u YOUR_APP_KEY:YOUR_APP_SECRET \
      -d code=ACCESS_CODE_GENERATED \
      -d grant_type=authorization_code
    * 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.
Attached Files
File Type: zip notes20250521.zip (1.88 MB, 39 views)
febalci is offline   Reply With Quote