The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::SMS::CSNetworks - Send SMS messages via the CSNetworks HTTP API

VERSION

version 0.07

SYNOPSIS

  # 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

DESCRIPTION

Perl module to send SMS messages through the HTTP API provided by CSNetworks (www.cs-networks.net).

METHODS

new

new( username => 'testuser', password => 'testpass' )

You need to supply your username and password in the constructor, or it will complain loudly.

send_sms

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.

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.

SEE ALSO

CS Networks website, http://www.cs-networks.net/

AUTHOR

CS Network Solutions LImited <support@cs-networks.net>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2012 by CS Network Solutions Limited.

This is free software, licensed under GPL