NodeJS module for SMS Ukraine service
Node module for using API of service smsukraine.com.ua. The full list of API methods and it's params you can find here.
Installing
npm install node-smsukraine
Usage
You can use two methods for setting login and pass: global and local.
With global method you can set login, pass and sms name for each request:
var SmsUkraine = ;var sms = login: "my_login" pass: "my_pass" name: "my_sms_name";
- login - your login in the system;
- pass - your password;
- name - your sms name;
With local method you can set login, pass and sms name for current request
smsstatusid: "248919871" login: "my_login" pass: "my_pass" { iferr return console; console;}
Methods
Send SMS
var data = "to": "380971234567" "text": "Hello world!"sms
For parameter data.to you can use differen types of mobile number. For example:
- +38 (097) 123-45-67
- 097 123 45 67
- 80971234567
- etc.
With successful request you will receive message with SMS id and SMS count:
Check status
smsstatus248919871 { iferr return console; console;}
Where id - sended SMS id.
With successful request you will receive status and code:
Check balance
sms
Contacts
Jaroslav Khorshchenko websnipter@gmail.com