use strict;
use warnings;
no indirect;
use feature qw(state);
use Object::Pad;
use JSON::MaybeUTF8 qw(decode_json_text);
use Scalar::Util qw(blessed);
use Data::Compare qw(Compare);
use Log::Any qw(
= $instance->get_feature_value('number_feature');
# get decoded json
my $json_feature = $instance->get_feature_value('json_feature');
=head1 DESCRIPTION
This module is a sdk of growthbo
'import';
use Scalar::Util qw(looks_like_number);
use Data::Dumper;
use Syntax::Keyword::Try;
use JSON::MaybeXS qw(is_bool);
our $VERSION = '0.003'; ## VERSION
our @EXPORT_OK = qw(eval_condition);
use Log::Any qw($log);
use Digest::MD5 qw(md5_base64);
use Syntax::Keyword::Try;
use JSON::MaybeUTF8 qw(decode_json_utf8);
use WebService::GrowthBook::InMemoryFeatureCache;
our $VERSION = '0.003'; ##
my $decoded = decode_json_utf8($r->{content});
return $decoded;
}
catch ($e){
$log->warnf("Failed to decode feature JSON from GrowthBook API: %s", $e)
}
method _get($url){
my $headers = {
'Content-Type' => 'application/json',
};
return $http->get($url, {headers => $headers});
}
method _get_fea
FeatureResult;
use strict;
use warnings;
no indirect;
use Object::Pad;
use Log::Any qw($log);
use JSON::MaybeXS;
our $VERSION = '0.003'; ## VERSION
class WebService::GrowthBook::FeatureResult{
f
= $instance->get_feature_value('number_feature');
# get decoded json
my $json_feature = $instance->get_feature_value('json_feature');
=head1 DESCRIPTION
This module is a sdk of growthbo