tmagic.com/
package Net::SMS::TextMagic;
use strict;
use warnings;
our $VERSION = '1.00';
use JSON;
use LWP::UserAgent;
use URI::Escape qw(uri_escape uri_escape_utf8);
use Encode qw(encode decode)
_json = contact_api($class, 'send', %params);
if (defined($r_json)) {
# No errors
my %response = ();
$response{'sent_text'} = $r_json->{'sent_text'};
$response{'parts_count'} = $r_json
->{'parts_count'};
while (my ($id, $number) = each %{$r_json->{"message_id"}} ) {
$response{'message_id'}{$number} = $id;
}
return %response;
}
else {
# Errors, we expect that err