Skip to content

abelokon0711/yandex-disk-file-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yandex Disk File Upload

This is a simple script to authenticate yourself and upload files to Yandex Disk. It is written in Go and uses the Yandex Disk REST API to upload files to your Yandex Disk account.

Getting Started

  1. Create a new application in the Yandex Disk OAuth page. You will need to provide a redirect URL. Since this script is meant to be run locally for now, we use http://localhost:8080/callback as the redirect URL.

  2. Copy the .env.example file to .env and fill in the values for the variables.

  3. Get the dependencies for the script by running the following command:

go get
  1. Run the script with the following command:
go run main.go source/file.txt app:/remote/file.txt

Build Windows executable

GOOS=windows GOARCH=amd64 go build

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages