Skip to content

finn-ball/rbmv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages