P::UserAgent;
use subs 'timeout';
use Class::Tiny qw(room_webhook_url _ua timeout);
use Carp;
use JSON;
use Try::Tiny;
use Data::Validate::URI qw(is_uri);
BEGIN {
our $VERSION = '0.3';
}
my $
ft;
my $msg_json = "{\"text\": \"$msg\"}";
my $req = HTTP::Request->new('POST', $self->room_webhook_url);
$req->header('Content-Type' => 'application/json');
$req->content($msg_json);
my $respon
if($response->is_error)
{
my $content = $response->decoded_content();
my $json;
try
{
$json = decode_json($content);
};
my $error_message = $response->code." ".$response->message;