MCPcopy Create free account
hub / github.com/openclaw/gogcli / NewAnalyticsData

Function NewAnalyticsData

internal/googleapi/analytics.go:23–31  ·  view source on GitHub ↗
(ctx context.Context, email string)

Source from the content-addressed store, hash-verified

21}
22
23func NewAnalyticsData(ctx context.Context, email string) (*analyticsdata.Service, error) {
24 if opts, err := optionsForAccount(ctx, googleauth.ServiceAnalytics, email); err != nil {
25 return nil, fmt.Errorf("analyticsdata options: %w", err)
26 } else if svc, err := analyticsdata.NewService(ctx, opts...); err != nil {
27 return nil, fmt.Errorf("create analyticsdata service: %w", err)
28 } else {
29 return svc, nil
30 }
31}

Callers 2

AnalyticsDataMethod · 0.85

Calls 2

optionsForAccountFunction · 0.85
ErrorfMethod · 0.80

Tested by 1