mirror of
https://github.com/sstent/go-garth.git
synced 2025-12-05 23:51:42 +00:00
fixed timecode issue
This commit is contained in:
6
pkg/auth/oauth/doc.go
Normal file
6
pkg/auth/oauth/doc.go
Normal 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
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user