Skip to content

yalp/lametric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 

Repository files navigation

Send a LaMetric push notification using go.

Check LaMetric developer site for more information.

	url := "https://developer.lametric.com/api/V1/dev/widget/update/com.lametric.APP_ID"
	token := "APP_TOKEN"

	lametric.Push(url, token, &App{
		Frames: []lametric.Frame{
			lametric.Frame{
				Index: 0,
				Text:  "some text",
				Icon:  "666",
			},
			lametric.Frame{
				Index: 1,
				Icon:  "667",
				GoalData: &lametric.Goal{
					End:     100,
					Current: 66,
					Unit:    "%",
				},
			},
		},
	})

About

LaMetric client library for Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages