- Install node.js 10 or newer
npm install
npm run dev
- Start service
npm run start
- Stop service
npm run stop
- Curl
curl -X POST -H "Content-Type: application/json" -D '{"to":"+66987654321","msg":"HelloWorld"}' http://localhost:3000/sms
- C# (RestSharp)
var client = new RestClient("http://localhost:3000/sms");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddJsonBody(new { to = "+66987654321", msg = "HelloWorld" });
IRestResponse response = client.Execute(request);