fitnessdata

package
v0.0.0-...-44d8840 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FitnessData

type FitnessData struct {
	StartDate                    time.Time `json:"startDate"`
	Days                         int       `json:"days"`
	DayNames                     []string  `json:"dayNames"`
	Steps                        []int64   `json:"steps"`
	Weight                       []float64 `json:"weight"`
	Height                       []float64 `json:"height"`
	CaloriesExpendedOnActivities []float64 `json:"caloriesExpendedOnActivities"`
	CaloriesExpendedOnBMR        []float64 `json:"caloriesExpendedOnBMR"`
}

FitnessData represents fitness data extracted from Google Fit from a time period.

func Get

func Get(conf *oauth2.Config, token *oauth2.Token) (*FitnessData, error)

Get uses the Google API to extract fitness data from the REST endpoint.

Jump to

Keyboard shortcuts

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