MCPcopy
hub / github.com/larksuite/cli / APIClient

Struct APIClient

internal/client/client.go:40–46  ·  view source on GitHub ↗

APIClient wraps lark.Client for all Lark Open API calls.

Source from the content-addressed store, hash-verified

38
39// APIClient wraps lark.Client for all Lark Open API calls.
40type APIClient struct {
41 Config *core.CliConfig
42 SDK *lark.Client // All Lark API calls go through SDK
43 HTTP *http.Client // Only for non-Lark API (OAuth, MCP, etc.)
44 ErrOut io.Writer // debug/progress output
45 Credential *credential.CredentialProvider
46}
47
48func (c *APIClient) resolveAccessToken(ctx context.Context, as core.Identity) (string, error) {
49 result, err := c.Credential.ResolveToken(ctx, credential.NewTokenSpec(as, c.Config.AppID))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected