fitbit

package
v0.0.0-...-ab72a44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthEndpoint  = "https://www.fitbit.com/oauth2/authorize"
	TokenEndpoint = "https://api.fitbit.com/oauth2/token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FitbitController

type FitbitController struct {
	// contains filtered or unexported fields
}

func NewFitbitController

func NewFitbitController(serverURL config.ServerURL, clientID config.ClientID, clientSecret config.ClientSecret) (*FitbitController, error)

func (*FitbitController) Callback

func (c *FitbitController) Callback(ctx context.Context, code string, verifier string) (string, domain.OAuth2Token, error)

func (*FitbitController) GenerateAuthURL

func (c *FitbitController) GenerateAuthURL(state string) (url.URL, string, error)

func (*FitbitController) GetHeartData

func (*FitbitController) GetName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL