applehealth

package
v0.0.0-...-09065da Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultScopes    = []string{"user.info, user.metrics, user.activity"}
	AppleHealthState string
)
View Source
var AppleHealthEndpoint = oauth2.Endpoint{
	AuthURL:  "https://account.apple.com/oauth2_user/authorize2",
	TokenURL: "https://account.apple.com/oauth2/token",
}

HealthMateEndpoint is the endpoints for Withings Health Mate

Functions

func NewClient

func NewClient(clientID string, clientSecret string, redirectURL string) api.ApiClient

Types

type Client

type Client api.Client

func (*Client) GetAccessToken

func (c *Client) GetAccessToken(code string) (token *oauth2.Token, err error)

GetAccessToken obtains the access token for the authenticated user

func (*Client) GetAuthCodeURL

func (c *Client) GetAuthCodeURL() string

GetAuthCodeURL obtains the user authentication URL

func (Client) ProcessRequest

func (hc Client) ProcessRequest(payload url.Values, v interface{}) error

Jump to

Keyboard shortcuts

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