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


/ Published in: Perl
Save to your folder(s)



Copy this code and paste it in your HTML
  1. use LWP::UserAgent;
  2. use HTTP::Request::Common;
  3.  
  4. my $ua = LWP::UserAgent->new();
  5. my $res = $ua->request
  6. (
  7. POST 'http://www.smsmatrix.com/matrix_voicew',
  8. Content => [ username => '[email protected]',
  9. password => 'pass8988',
  10. phone => '12502771720', ## comma delimited list
  11. voiceurl => 'http://www.myweb.de/s/welcome.mp3',
  12. response => 0, ## optional
  13. callerid => '16307791722' ## optional
  14. ]
  15. );
  16.  
  17. if ($res->is_error) { die "HTTP Error\n"; }
  18. print "Matrix API Response1: " . $res->content . "\n\n";

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.