/m
Message System
# POST
to:| Mandatory
msg:| Mandatory
from:| Optional
curl -i -H "Content-Type: application/json" -X POST -d '{"to": "Friend", "msg": "Hello", "from": "A"}' http://ki.tc/m
{
"message": {
"_id": "5e449006732699bd3d7a5",
"from": "A",
"link": "http://ki.tc/m/ea1538f4f7",
"msg": "Hello",
"time": "Mon, 28 Aug 2017 13:13:16 GMT",
"to": "Friend"
}
}
ADMIN | IP Logger
GET
URL=http://ki.tc/m/admin/_ID
curl -i -H "Content-Type: application/json" -X GET http://ki.tc/m/admin/5e449006732699bd3d7a5
{
"3df818b496db": {
"access_id": "3df818b496db",
"access_time": "Mon, 28 Aug 2017 13:21:39 GMT",
"ip_address": "X.X.X.X",
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.91 Safari/537.36 Vivaldi/1.92.917.39"
},
"_id": "5e449006732699bd3d7a5",
"msg_build": {
"_id": "5e449006732699bd3d7a5",
"from": "A",
"link": "http://ki.tc/m/ea1538f4f7",
"msg": "Hello",
"time": "Mon, 28 Aug 2017 13:13:16 GMT",
"to": "Friend"
},
"msg_id": 191706421189523233
}
ADMIN | DELETE
URL=http://ki.tc/m/admin/_ID
curl -i -H "Content-Type: application/json" -X DELETE http://ki.tc/m/admin/5e449006732699bd3d7a5
{
"result": true
}