anonymous-message-api
A nice anonymous message api (Uses Flask's restful api)
How it works:
put
request to your api server:
1. The user send a Required fields: newMessage
Content type: json
Ratelimiting: 2 posts / hour
Example put request with curl:
curl -d '{"newMessage": "Hello everyone!"}' -H 'Content-Type: application/json' http://127.0.0.1:5000/api/message
The newMessage value will be stored inside the message.txt file.
You will recieve a statuscode 200 if it works
get
request to your api server
2. The next user send a Example get request with curl:
curl http://127.0.0.1:5000/api/message
You will recieve the previous message in json format.
Example:
{ "message": "Hello everyone!" }