iftttclient

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2017 License: MIT Imports: 9 Imported by: 0

README

iftttclient

A client for the IFTTT Maker APIs. I wrote this command to be notified when certain long tasks are finished (or they fail):

$ ./perform-long-task.sh && iftttclient trigger notify "Task finished" || iftttclient trigger notify "Task failed"

Usage

$ iftttclient trigger -k my-api-key my-event [my-value1 my-value2 my-value3]

API key can be specified using an environment variable:

$ export IFTTT_API_KEY=my-api-key
$ iftttclient trigger my-event [my-value1 my-value2 my-value3]

Or you can use the iftttclient store command to store it in your home directory:

$ iftttclient store my-api-key
$ iftttclient trigger my-event [my-value1 my-value2 my-value3]

Please notice that, for now, you API key is written in plain text (in $HOME/.iftttclient/config.json)

TODO

  • Support encryption for locally stored API key

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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