h::Response;
use HTTP::Request::Common;
use URI;
use Furl::HTTP;
use Data::Recursive::Encode;
use JSON 2 ();
use Carp qw(croak);
use Digest::SHA qw(hmac_sha256 hmac_sha256_hex);
use MIME::Base64::URLS
h_limit} || 50,
is_beta => $args->{is_beta} || 0,
json => $args->{json} || JSON->new->utf8,
use_appsecret_proof => $args->{use_appsecret_proof} || 0,
atch_limit} }
sub is_beta { shift->{is_beta} }
sub json { shift->{json} }
sub use_appsecret_proof { shift->{use_appsecret_proof} }
sub use
001;
use Carp qw(croak);
use JSON 2 ();
sub new {
my $class = shift;
my $args = shift || +{};
return bless +{
json => $args->{json} || JSON->new->utf8,
headers
ub req_headers { shift->{req_headers} }
sub req_content { shift->{req_content} }
sub json { shift->{json} }
sub etag { shift->header('etag') }
sub api_version {
my $self =
$error->{error_user_msg} || '-',
);
}
return $err_str;
}
sub as_json {
my $self = shift;
my $content = $self->content;
if ($content =~ m{\A (true|false)