rbmv

command module
v0.0.0-...-6bb829b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

README

rbmv

Moving and copying files in dropbox from one place to another.

go run main.go

Generating Refresh Tokens

Go here and access your app:

https://www.dropbox.com/developers/apps

Copy the App key then paste into and execute the below URL:

https://www.dropbox.com/oauth2/authorize?client_id=$app_key&token_access_type=offline&response_type=code

Generate an App secret from the app developers menu and paste in that plus the App key and generated_code from the previous URL:

curl --location --request POST 'https://api.dropboxapi.com/oauth2/token' \
-u '$app_key:$app_secret' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'code=$generated_code' \
--data-urlencode 'grant_type=authorization_code'

Paste the App secret, App key and the refresh_token in the response into the settings.toml file:

var ClientID = "" # App key
var ClientSecret = "" # App secret
var RefreshToken = "" # Refresh token

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL