File size: 701 Bytes
215df2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package google_photo

import (
	"github.com/alist-org/alist/v3/internal/driver"
	"github.com/alist-org/alist/v3/internal/op"
)

type Addition struct {
	driver.RootID
	RefreshToken string `json:"refresh_token" required:"true"`
	ClientID     string `json:"client_id" required:"true" default:"202264815644.apps.googleusercontent.com"`
	ClientSecret string `json:"client_secret" required:"true" default:"X4Z3ca8xfWDb1Voo-F9a7ZxJ"`
	ShowArchive  bool   `json:"show_archive"`
}

var config = driver.Config{
	Name:        "GooglePhoto",
	OnlyProxy:   true,
	DefaultRoot: "root",
	NoUpload:    true,
	LocalSort:   true,
}

func init() {
	op.RegisterDriver(func() driver.Driver {
		return &GooglePhoto{}
	})
}