Net::SMS::CSNetworks - Send SMS messages via the CSNetworks HTTP API
version 0.07
# Create a testing sender my $sms = Net::SMS::CSNetworks->new( username => 'testuser', password => 'testpass' ); # Send a message my ($id, $status, $response) = $sms->send_sms( MESSAGE => "This is the test message", DESTADDR => '1234567890', ); $id will contain a message id given by smsc, $status will contain numeric status code of message from the provider. $response will contain textual response from the provider
Perl module to send SMS messages through the HTTP API provided by CSNetworks (www.cs-networks.net).
new( username => 'testuser', password => 'testpass' )
You need to supply your username and password in the constructor, or it will complain loudly.
send_sms(DESTADDR => $phone_number, MESSAGE => $message, SOURCEADDR => $sender)
Uses the API to send a message given in $message to the phone number given in $phone_number.
$message
$phone_number
Phone number should be given with only digits. No "+" or spaces, like this:
1234567890
Returns a true / false value and a status message. The message is "success" if the server has accepted your query. It does not mean that the message has been delivered.
CS Networks website, http://www.cs-networks.net/
CS Network Solutions LImited <support@cs-networks.net>
This software is Copyright (c) 2012 by CS Network Solutions Limited.
This is free software, licensed under GPL
To install Net::SMS::CSNetworks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::SMS::CSNetworks
CPAN shell
perl -MCPAN -e shell install Net::SMS::CSNetworks
For more information on module installation, please visit the detailed CPAN module installation guide.