NotifyD.one
|

Create action

Eventcount: Count of events that need to finished
Actionname: Name of action. When not provided, a name will be generated
curl -H 'auth: <api token>' https://notifyd.one/action/<actionName>/create?count=<eventcount>

Send event (Get)

Status: Can be either "started", "update", "done" or "error"
curl -H 'auth: <api token>' https://notifyd.one/action/<actionName>/event?status=<status>

Send event (Post)

Status: Can be either "started", "update", "done" or "error"
Info: Additional info, for example the hostname or error codes
curl -X POST -H 'auth: <api token>' https://notifyd.one/action/<actionName>/event?status=<status> \
-H 'Content-Type: application/json' \
-d '{"info":"<info>"}'

Querying status

Actionname: The name of the action
Poll kind: Can be either "short"(instant response), "long"(response when done) or blank (default is long)
curl -H 'auth: <api token>' https://notifyd.one/action/<poll kind>/<actionName>

Adhoc Event

Status: Can be either "started", "update", "done" or "error"
curl -H 'auth: <api token>' https://notifyd.one/action/adhoc?status=<status>