14 lines
304 B
Go
14 lines
304 B
Go
package googleapi
|
|
|
|
import (
|
|
"context"
|
|
|
|
"google.golang.org/api/drive/v3"
|
|
|
|
"github.com/steipete/gogcli/internal/googleauth"
|
|
)
|
|
|
|
func NewDrive(ctx context.Context, email string) (*drive.Service, error) {
|
|
return newGoogleServiceForAccount(ctx, email, googleauth.ServiceDrive, "drive", drive.NewService)
|
|
}
|