fixed timecode issue

This commit is contained in:
2025-09-22 10:53:41 -07:00
parent 4aa72fcd11
commit f2256a9cfe
20 changed files with 173 additions and 12 deletions

6
pkg/auth/oauth/doc.go Normal file
View File

@@ -0,0 +1,6 @@
// Package oauth provides public wrappers around the internal OAuth helpers.
// It exposes functions to obtain OAuth1 tokens and exchange them for OAuth2
// tokens compatible with the public garmin package types. External consumers
// should use this package when they need token bootstrapping independent of
// a fully initialized client.
package oauth

View File

@@ -9,6 +9,8 @@ import (
"github.com/sstent/go-garth/internal/models/types"
)
// GetDailyHRVData retrieves comprehensive daily HRV data for the given date.
// It returns nil when no HRV data is available for the specified day.
func (c *Client) GetDailyHRVData(date time.Time) (*types.DailyHRVData, error) {
return getDailyHRVData(date, c.Client)
}
@@ -41,6 +43,9 @@ func getDailyHRVData(day time.Time, client *internalClient.Client) (*types.Daily
return &response.HRVSummary, nil
}
// GetDetailedSleepData retrieves comprehensive sleep data for the given date,
// including sleep stages and movement where available. It returns nil when no
// sleep data is available for the specified day.
func (c *Client) GetDetailedSleepData(date time.Time) (*types.DetailedSleepData, error) {
return getDetailedSleepData(date, c.Client)
}