Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/google_photo/meta.go
1987 views
1
package google_photo
2
3
import (
4
"github.com/alist-org/alist/v3/internal/driver"
5
"github.com/alist-org/alist/v3/internal/op"
6
)
7
8
type Addition struct {
9
driver.RootID
10
RefreshToken string `json:"refresh_token" required:"true"`
11
ClientID string `json:"client_id" required:"true" default:"202264815644.apps.googleusercontent.com"`
12
ClientSecret string `json:"client_secret" required:"true" default:"X4Z3ca8xfWDb1Voo-F9a7ZxJ"`
13
ShowArchive bool `json:"show_archive"`
14
}
15
16
var config = driver.Config{
17
Name: "GooglePhoto",
18
OnlyProxy: true,
19
DefaultRoot: "root",
20
NoUpload: true,
21
LocalSort: true,
22
}
23
24
func init() {
25
op.RegisterDriver(func() driver.Driver {
26
return &GooglePhoto{}
27
})
28
}
29
30