yeah there's a json api
if you want to embed away messages (like yours, or like your friends, whatever) into another page, or into another application, you can do so with these api calls.
getting a status
you can get a status with this GET call:
GET https://awaymessage.lol/json/get/pokeythepenguin
gives you:
{ "result": "", "message": null, "data": { "displayName": "", "profilePic": "", "status": "", "statusImg": "", "awayMessage": "" } }
setting a status
you can update your away message using your api token (available here whenever you're logged in.) pass in a json struct with a property for "status" and a property for "message" and make sure status is one of: online, away, dnd, invisible, offline. here's an example using curl:
curl -X POST https://awaymessage.lol/json/set \ -H "Authorization: Bearer your-api-token" \ -H "Content-Type: application/json" \ -d '{ "status": "away", "message": "Back in 30 minutes" }'
don't abuse this or i'll rate-limit ya!
simple as. well, rate-limit or ban. we'll see.