https://github.com/dewski/ifttt
Publish IFTTT events to your maker channel
https://github.com/dewski/ifttt
Last synced: 8 months ago
JSON representation
Publish IFTTT events to your maker channel
- Host: GitHub
- URL: https://github.com/dewski/ifttt
- Owner: dewski
- Created: 2016-10-13T23:24:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-12T21:19:14.000Z (over 9 years ago)
- Last Synced: 2025-03-17T07:45:02.740Z (about 1 year ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ifttt
[](http://godoc.org/github.com/dewski/ifttt)
```go
package main
import (
"fmt"
"github.com/dewski/ifttt"
)
func main() {
// Automatically reads IFTTT_MAKER_KEY if set
ifttt.SetKey("1234")
values := ifttt.Values{
Value1: "1600 Pennsylvania Ave NW, Washington, DC 20500",
Value2: 1,
Value3: 45,
}
err := ifttt.Deliver("trip-finish", values)
if err != nil {
panic(err)
}
fmt.Println("Success!")
}
```