package WebService::Futu;
use warnings;
use strict;
use LWP::UserAgent;
use JSON::XS;
use HTTP::Status qw(:constants :is status_message);
use HTTP::Cookies;
use Data::Dumper;
=head1 NAME
WebServi
$content) = @_;
my $json_content = encode_json($content) if $content;
my $max = 10;
for (my $i = 0; $i < $max; $i++){
my $body = $self->_perform($method, $query, $json_content);
# run co
mmand
if ($body->code eq HTTP_OK) {
if ($body->content){
return decode_json($body->content)
}else{
return {};
};
} elsif ($body->code eq HTTP_UNAUTHORIZED) {
# mak