(ctx context.Context, account string)
| 182 | } |
| 183 | |
| 184 | func analyticsDataService(ctx context.Context, account string) (*analyticsdata.Service, error) { |
| 185 | runtime, err := runtimeWithService(ctx, "analytics data") |
| 186 | if err != nil || runtime.Services.AnalyticsData == nil { |
| 187 | return nil, serviceError(err, "analytics data") |
| 188 | } |
| 189 | return runtime.Services.AnalyticsData(ctx, account) |
| 190 | } |
| 191 | |
| 192 | func calendarService(ctx context.Context, account string) (*calendar.Service, error) { |
| 193 | runtime, err := runtimeWithService(ctx, "calendar") |