Live Feed:

Loading...







API Endpoints:

GET (current state of beans): https://tomandtim.com/beans/api/v1/beans

POST (to move beans): https://tomandtim.com/beans/api/v1/beans with data - {"from": "tim", "to": "tom"} use application/x-www-form-urlencoded

Server Sent Events (for live updates): https://tomandtim.com/beans/api/v1/beans/subscribe

API Limits:

300 Requests for 1 hour

Requests must be 5 seconds apart

See Headers for more info

Authentication:

JWT as Authorization header eg:

Authorization: Bearer eyJhbGciOiJ....bla bla bla........................

Curl examples:

curl -v -X POST -d '{"from": "tim", "to": "tom"}' -H "Authorization: Bearer eyJhbGciOiJ....bla bla bla........................" https://tomandtim.com/beans/api/v1/beans

curl -v -H "Authorization: Bearer eyJhbGciOiJ....bla bla bla........................" https://tomandtim.com/beans/api/v1/beans




Winner is whoever has the most beans by the end of the day at midnight 00:00


Winners List