#!/usr/bin/perl
use LWP::UserAgent;
my $ua = new LWP::UserAgent;
my $login = '';
my $password = '';
my $send_sms = '
SEND'.$login.''.$password.'SMSTest message [UTF-8]380972920000';
my $response = $ua->post('http://api.atompark.com/members/sms/xml.php',{ XML => $send_sms});
print $response->content;
Get a status of sent sms*:
#!/usr/bin/perl
use LWP::UserAgent;
my $ua = new LWP::UserAgent;
my $login = '';
my $password = '';
my $get_sms_status = '
SEND'.$login.''.$password.'msg11';
my $response = $ua->post('http://api.atompark.com/members/sms/xml.php',{ XML => $get_sms_status});
print $response->content;
* The sms status information will be available in a few minutes
Get a price of sms:
#!/usr/bin/perl
use LWP::UserAgent;
my $ua = new LWP::UserAgent;
my $login = '';
my $password = '';
my $get_send_price = '
GETPRICE'.$login.''.$password.'SMSTest message [UTF-8]380972920000';
my $response = $ua->post('http://api.atompark.com/members/sms/xml.php',{ XML => $get_send_price});
print $response->content;
Get a current balance
#!/usr/bin/perl
use LWP::UserAgent;
my $ua = new LWP::UserAgent;
my $login = '';
my $password = '';
my $get_balance = '
BALANCE'.$login.''.$password.'';
my $response = $ua->post('http://api.atompark.com/members/sms/xml.php',{ XML => $get_balance});
print $response->content;