Yandex.Disk API client (WIP)
go get -v github.com/ilyabrin/disk
Set the environment variable:
export YANDEX_DISK_ACCESS_TOKEN=_<your access_token string>_
Working example (errors checks omitted):
func main() {
client := disk.New() // New("or paste your access token here")
ctx := context.Background()
disk, err := client.DiskInfo(ctx)
if err != nil {
log.Println(err)
}
log.Println(disk)
}