s->ua->post( $s->baseURL().'/api/v1/auth', {Accept => '*/*'}, json => $params );
my $json = _handleResponse($tx);
return $json if $json->{error};
my $cookies = $tx->res->cookies;
my $sessionC
y ($ua, $tx) = @_;
$tx->req->headers->header('X-CSRF-Token' => $csrfHeader);
});
return $json;
}
=head3 loginActive
=cut
sub loginActive($s) {
my $tx = $s->ua->get( $s->baseURL().'/api/v
b ssnAdd($s, $params) {
my $tx = $s->ua->post( $s->baseURL().'/api/v1/ssns', {Accept => '*/*'}, json => $params );
return _handleResponse($tx);
}
=head3 ssnGet
See Hetula API doc for endpoint GE