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

Function NewSearchConsole

internal/googleapi/searchconsole.go:12–20  ·  view source on GitHub ↗
(ctx context.Context, email string)

Source from the content-addressed store, hash-verified

10)
11
12func NewSearchConsole(ctx context.Context, email string) (*searchconsoleapi.Service, error) {
13 if opts, err := optionsForAccount(ctx, googleauth.ServiceSearchConsole, email); err != nil {
14 return nil, fmt.Errorf("searchconsole options: %w", err)
15 } else if svc, err := searchconsoleapi.NewService(ctx, opts...); err != nil {
16 return nil, fmt.Errorf("create searchconsole service: %w", err)
17 } else {
18 return svc, nil
19 }
20}

Callers 2

SearchConsoleMethod · 0.85

Calls 2

optionsForAccountFunction · 0.85
ErrorfMethod · 0.80

Tested by 1