Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is an abstraction object for the Google Drive service. It is intended to satisfy `stationery.Service` interface.
func GetService ¶
GetService creates a new `drive.Service` from a credentials file. The argument is just the path to a credentials file, which are expected to identify a service account. If the argument is empty, and on any other error, an error is returned.
func (*Service) ExportFile ¶
ExportFile exports the file in the first argument, returning the content in the specified MIME type, as the second argument.
Click to show internal directories.
Click to hide internal directories.