Skip to content

isman-usoh/at-send-sms-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

at-send-sms-api

0. Prerequest

  • Install node.js 10 or newer

1. Instalation

npm install

2. Developer

npm run dev

3. Production

  • Start service
npm run start
  • Stop service
npm run stop

4. Test

  • 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);

About

Send Sms via ATCommand

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published