package CrowdSec::Client;
use strict;
use Date::Parse;
use HTTP::Request::Common;
use JSON;
use LWP::UserAgent;
use Moo;
use POSIX "strftime";
our $VERSION = '0.04';
# Default alert template
our %D
=> 'Banned by CrowdSec::Client',
scenario => 'Banned by CrowdSec::Client',
simulated => JSON::false,
type => 'ban',
);
# Watcher accessors
has machineId => ( is => 'ro' );
has pass
1/watchers/login',
Accept => 'application/json',
Content_Type => 'application/json',
Content => JSON::to_json(
{
machine_id => $self->mac