Return to Snippet

Revision: 28621
at July 10, 2010 13:52 by smsmatrix


Initial Code
use LWP::UserAgent;
use HTTP::Request::Common;

my $ua = LWP::UserAgent->new();
my $res = $ua->request
(
 POST 'http://www.smsmatrix.com/matrix_voicew',
      Content      => [ username  => '[email protected]',
                        password  => 'pass8988',
                        phone     => '12502771720',  ## comma delimited list
                        voiceurl  => 'http://www.myweb.de/s/welcome.mp3',
                        response  => 0,  ## optional
                        callerid  => '16307791722'  ## optional
                      ]
);

if ($res->is_error) { die "HTTP Error\n"; }
print "Matrix API Response1: " . $res->content . "\n\n";

Initial URL
http://www.smsmatrix.com/?sms-gateway

Initial Description


Initial Title
send voice phone via voice gateway at www.smsmatrix.com

Initial Tags
phone

Initial Language
Perl