make
sudo make install
sudo make run
POST: localhost:6868/messages
{ "text" : "", "phonenumber" : "" }
GET: localhost:6868/messages
{ }
GET: localhost:6868/state
{ "status" : 200, "state" : "active" || "inactive" }
If
status != 200
: No Daemon has not been installed, and is not running manually Ifstatus == 200
andstate == "inactive"
: Daemon has not been installed, but is running manually Ifstatus == 200
andstate == "failed"
: Daemon successfully installed, but failed to start Ifstatus == 200
andstate == "active"
: Daemon has been installed
GET: localhost:6868/logs
{ "date": "Thu, 01 Apr 2021 16:59:01 GMT", "id": 116, "mdate": "Thu, 01 Apr 2021 16:59:06 GMT", "message": "successfully sent the SMS", "messageID": 110, "other_id": null, "status": "sent" },....