README

gdrive-utils

Google Drive API Utils

Expand ▾ Collapse ▴

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultClient

func DefaultClient(dir string) (*http.Client, error)

func NewClient

func NewClient(dir string, config *oauth2.Config) *http.Client

    Retrieves a token, saves the token, then returns the generated client.

    Types

    type Spreadsheet

    type Spreadsheet struct {
    	SpreadSheetId string
    	// contains filtered or unexported fields
    }

    func NewSpreadsheet

    func NewSpreadsheet(spreadsheetId string, opts ...option.ClientOption) (*Spreadsheet, error)

    func (*Spreadsheet) AppendRowData

    func (si *Spreadsheet) AppendRowData(sheetId int64, data []string, formatCell bool) error

      ref: https://developers.google.com/sheets/api/guides/batchupdate

      func (*Spreadsheet) EnsureSheet

      func (si *Spreadsheet) EnsureSheet(name string, headers []string) (int64, error)

      func (*Spreadsheet) FindEmptyCell

      func (si *Spreadsheet) FindEmptyCell(sheetName string) (string, error)

      Source Files