Documentation ¶
Overview ¶
Package google has Google API client stuff
Index ¶
- func NormalizeFileID(s string) (string, error)
- func SheetToDonorWall(ctx context.Context, cl *http.Client, sheetID string) (map[string]DonorWall, error)
- type AnalyticsRequest
- type AnalyticsResponse
- type ColumnHeader
- type Data
- type DateRange
- type Dimension
- type Donor
- type DonorWall
- type FileList
- type Files
- type LastModifyingUser
- type Metric
- type MetricHeader
- type MetricHeaderEntry
- type OrderBy
- type Report
- type ReportRequest
- type Row
- type Service
- func (gsvc *Service) AddFlags(fl *flag.FlagSet)
- func (gsvc *Service) ConfigureCert(s string) error
- func (gsvc *Service) DownloadFile(ctx context.Context, cl *http.Client, fileID string) ([]byte, error)
- func (gsvc *Service) DownloadURLForDriveID(fileID string) (string, error)
- func (gsvc *Service) DriveClient(ctx context.Context) (cl *http.Client, err error)
- func (gsvc *Service) Files(ctx context.Context, cl *http.Client) (files []*Files, err error)
- func (gsvc *Service) GAClient(ctx context.Context) (cl *http.Client, err error)
- func (gsvc *Service) GDocsClient(ctx context.Context) (cl *http.Client, err error)
- func (gsvc *Service) HasCert() bool
- func (gsvc *Service) MostPopularNews(ctx context.Context, cl *http.Client) (pages []string, err error)
- func (gsvc *Service) SetMockClient(cl *http.Client)
- func (gsvc *Service) SheetsClient(ctx context.Context) (cl *http.Client, err error)
- type SheetMap
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeFileID ¶
Types ¶
type AnalyticsRequest ¶
type AnalyticsRequest struct {
ReportRequests []ReportRequest `json:"reportRequests"`
}
type AnalyticsResponse ¶
type AnalyticsResponse struct {
Reports []Report `json:"reports"`
}
type ColumnHeader ¶
type ColumnHeader struct { Dimensions []string `json:"dimensions"` MetricHeader MetricHeader `json:"metricHeader"` }
type Files ¶
type Files struct { ID string `json:"id"` Name string `json:"name"` LastModifyingUser LastModifyingUser `json:"lastModifyingUser"` }
type LastModifyingUser ¶
type MetricHeader ¶
type MetricHeader struct {
MetricHeaderEntries []MetricHeaderEntry `json:"metricHeaderEntries"`
}
type MetricHeaderEntry ¶
type Report ¶
type Report struct { ColumnHeader ColumnHeader `json:"columnHeader"` Data Data `json:"data"` }
type ReportRequest ¶
type ReportRequest struct { ViewID string `json:"viewId"` DateRanges []DateRange `json:"dateRanges"` Dimensions []Dimension `json:"dimensions"` Metrics []Metric `json:"metrics"` FiltersExpression string `json:"filtersExpression"` OrderBys []OrderBy `json:"orderBys"` PageSize int `json:"pageSize"` PageToken string `json:"pageToken"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ConfigureCert ¶
func (*Service) DownloadFile ¶
func (*Service) DownloadURLForDriveID ¶
func (*Service) DriveClient ¶
func (*Service) GDocsClient ¶
func (*Service) MostPopularNews ¶
func (*Service) SetMockClient ¶
type SheetMap ¶
type SheetMap struct {
// contains filtered or unexported fields
}
func NewSheetMap ¶
func NewSheetMap(sheet *spreadsheet.Sheet) *SheetMap
Click to show internal directories.
Click to hide internal directories.