Versions in this module Expand all Collapse all v0 v0.1.1 Mar 12, 2026 v0.1.0 Mar 12, 2026 Changes in this version + func ParseInt32(raw string) (int32, error) + func RandomExternalID() string + type APIError struct + Body []byte + StatusCode int + func (e *APIError) Error() string + type ActivityBestEffortsOptions struct + Count *int32 + DistanceM *float32 + DurationSec *int32 + EndIndex *int32 + ExcludeIntervals *bool + MinValue *float32 + StartIndex *int32 + Stream string + type ActivityListOptions struct + Fields []string + Limit *int32 + Newest *string + Oldest string + RouteID *int64 + type ActivitySearchOptions struct + Limit *int32 + Newest *string + Oldest *string + Query string + type ActivityStreamsOptions struct + IncludeDefaults *bool + Types []string + type ActivityUploadOptions struct + Description *string + DeviceName *string + ExternalID *string + FilePath string + Name *string + PairedEventID *int32 + type Client struct + func NewClient(cfg Config) (*Client, error) + func (c *Client) ActivitiesList(ctx context.Context, opts ActivityListOptions) (any, error) + func (c *Client) ActivitiesSearch(ctx context.Context, opts ActivitySearchOptions) (any, error) + func (c *Client) ActivitiesUpload(ctx context.Context, opts ActivityUploadOptions) (any, error) + func (c *Client) ActivityBestEfforts(ctx context.Context, id string, opts ActivityBestEffortsOptions) (any, error) + func (c *Client) ActivityDownload(ctx context.Context, id, kind string) ([]byte, error) + func (c *Client) ActivityGet(ctx context.Context, id string) (any, error) + func (c *Client) ActivityIntervals(ctx context.Context, id string) (any, error) + func (c *Client) ActivityStreams(ctx context.Context, id string, opts ActivityStreamsOptions) (any, error) + func (c *Client) AthleteGet(ctx context.Context) (any, error) + func (c *Client) AthleteProfile(ctx context.Context) (any, error) + func (c *Client) AthleteTrainingPlan(ctx context.Context) (any, error) + func (c *Client) AuthStatus(ctx context.Context) (any, error) + func (c *Client) EventDelete(ctx context.Context, id int32) (any, error) + func (c *Client) EventGet(ctx context.Context, id int32) (any, error) + func (c *Client) EventsCreate(ctx context.Context, body []byte) (any, error) + func (c *Client) EventsList(ctx context.Context, opts EventListOptions) (any, error) + func (c *Client) EventsUpsert(ctx context.Context, body []byte) (any, error) + func (c *Client) WellnessBulkPut(ctx context.Context, body []byte) (any, error) + func (c *Client) WellnessGet(ctx context.Context, date string) (any, error) + func (c *Client) WellnessList(ctx context.Context, opts WellnessListOptions) (any, error) + func (c *Client) WellnessPut(ctx context.Context, date string, body []byte) (any, error) + func (c *Client) WhoAmI(ctx context.Context) (any, error) + func (c *Client) WorkoutDownload(ctx context.Context, id int32, format string) ([]byte, error) + func (c *Client) WorkoutGet(ctx context.Context, id int32) (any, error) + func (c *Client) WorkoutsCreate(ctx context.Context, body []byte) (any, error) + func (c *Client) WorkoutsList(ctx context.Context) (any, error) + type Config struct + BaseURL string + Stderr io.Writer + Timeout time.Duration + UserAgent string + Verbose bool + type EventListOptions struct + Category []string + Limit *int32 + Newest *string + Oldest *string + type WellnessListOptions struct + Fields []string + Newest *string + Oldest *string