Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drive.New is deprecated #16

Open
mathisve opened this issue Oct 21, 2022 · 0 comments
Open

drive.New is deprecated #16

mathisve opened this issue Oct 21, 2022 · 0 comments

Comments

@mathisve
Copy link
Owner

The way a google drive client session is created from the credentials is deprecated.

conf, err := google.JWTConfigFromJSON([]byte(creds), scope)

// instantiating a new drive service
ctx := context.Background()
svc, _ := drive.New(conf.Client(ctx))

This should ideally be changed so it supports the non-depreciated / stable functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant