App StateBETA

Create an App

Alternatively, see below for programmatically create an app.

API

Create an App

curl -X POST https://appstate.herokuapp.com/api/app/create -d '{"limit": 100}'

The response will look like

{"app_id": "YOUR_APP_ID"}

Update an app

curl -X PUT https://appstate.herokuapp.com/app/YOUR_APP_ID -d '{"limit": 100}'

Send an event

curl -X POST https://appstate.herokuapp.com/app/YOUR_APP_ID -d '{"note": "hello world", "amount": 0.5}'

This will return a 200 on success, and a 204 if your events have exceeded the limit.