ttps;
use DateTime qw();
use base 'SMS::Send::Driver';
use Log::LogLite;
use Text::Unidecode;
use JSON;
sub new {
my $class = shift;
my %params = @_;
my $LOG_FILE = "/var/log/bulkgate.log";
my
\%params );
if( $res->{'_rc'} == 200 ) {
my $json = decode_json($res->{'_content'});
if (defined $json->{data}->{status} && $json->{data}->{status} eq 'accepted') {
$self->
;
}
}
else {
my $json = eval { decode_json($res->{'_content'}) };
$self->log("Error " . $res->{'_rc'} . ": " . (defined $json ? $json->{error} : 'unexpected error'), 4);