api

package
v0.0.0-...-8838e55 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RootURL https://h2w.cc/api/v1
	RootURL = "https://h2w.cc/api/v1"
	// GetTokenURL https://h2w.cc/api/v1/auth/token
	GetTokenURL = RootURL + "/auth/token"
	// VerifyTokenURL https://h2w.cc/api/v1/verify
	VerifyTokenURL = GetTokenURL + "/verify"
	//DashboardURL https://h2w.cc/api/v1/dashboard
	DashboardURL = RootURL + "/dashboard"
)

Variables

This section is empty.

Functions

func Dashboard

func Dashboard(tokenFile string)

Dashboard data for the current day, week, and quarter

func DeleteToken

func DeleteToken(tokenFile string)

DeleteToken data

func Login

func Login(email string, password string, tokenFile string)

Login to Health2Wealth api

func ShortStats

func ShortStats(tokenFile string)

ShortStats one-line status update

func VerifyToken

func VerifyToken(token string, tokenFile string)

VerifyToken that token is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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