atus->{$key};
}
$status->{$key} = "$api_url/statuses/show/" . $status->{$key} . ".json";
}
return $status;
}
sub filter_twitter_status_id {
my ($api_url) = @_;
return
);
use BusyBird::DateTime::Format;
use Storable qw(dclone);
use Carp;
use List::Util qw(min);
use JSON;
use Try::Tiny;
sub new {
my ($class, %options) = @_;
my $self = bless {
timelin
lepath to write.");
return 0;
}
my $success;
try {
print $file encode_json($self->{timelines});
$success = 1;
}catch {
my $e = shift;
$self->_lo
ccess;
try {
my $text = do { local $/; <$file> };
$self->{timelines} = decode_json($text);
$success = 1;
}catch {
my $e = shift;
$self->_log("error", "E
_or sql_lt sql_le sql_raw);
use BusyBird::DateTime::Format;
use BusyBird::Util qw(set_param);
use JSON;
use Scalar::Util qw(looks_like_number);
use DateTime::Format::Strptime;
use DateTime;
no autoviv
>{created_at});
$record->{content} = to_json($status);
return $record;
}
sub _from_status_record {
my ($record) = @_;
my $status = from_json($record->{content});
$status->{id} = $
rrayRef [ InstanceOf ['Business::eWAY::RapidAPI::Option'] ],
default => sub { [] }
);
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
package # hidden from PAUSE
Business::eWAY::RapidAPI::O
Moo;
use MooX::Types::MooseLike::Base 'Str';
has 'Value' => ( is => 'rw', isa => Str );
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Business::e
Moo::Role;
use JSON::MaybeXS;
use XML::Simple;
sub Obj2ARRAY {
my ( $self, $obj ) = @_;
my $json = JSON::MaybeXS->new( convert_blessed => 1 );
return $json->decode( $json->encode($obj)
f, $obj ) = @_;
my $json = JSON::MaybeXS->new( convert_blessed => 1 );
return $json->encode($obj);
}
sub JSON2Obj {
my ( $self, $obj ) = @_;
my $json = JSON::MaybeXS->new( convert_b
lessed => 1 );
return $json->decode($obj);
}
sub Obj2XML {
my ( $self, $obj, $reqname ) = @_;
my $xs = XML::Simple->new(
GroupTags => { 'Items' => 'LineItem', 'Options' => 'O
ddress']
);
sub _build_ShippingAddress { Business::eWAY::RapidAPI::ShippingAddress->new }
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Business::e
ayRef [ InstanceOf ['Business::eWAY::RapidAPI::LineItem'] ],
default => sub { [] }
);
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
package # hidden from PAUSE
Business::eWAY::RapidAPI::L
isa => Str )
foreach ( 'SKU', 'Description', 'Quantity', 'UnitCost', 'Tax', 'Total' );
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Business::e
t', 'InvoiceNumber', 'InvoiceDescription',
'InvoiceReference', 'CurrencyCode'
);
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Business::e
', 'State', 'PostalCode',
'Country', 'Email', 'Phone', 'Fax'
);
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Business::e
I::CardDetails'] );
sub _build_CardDetails { Business::eWAY::RapidAPI::CardDetails->new }
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Business::e
e MooX::Types::MooseLike::Base qw(:all);
has 'AccessCode' => ( is => 'rw', isa => Str );
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Business::e
ntService.RPC' => 'https://api.ewaypayments.com/json-rpc',
'PaymentService.JSONPScript' =>
'https://api.ewaypayments.com/JSONP/v1/js',
};
}
else {
re
'https://api.sandbox.ewaypayments.com/json-rpc',
'PaymentService.JSONPScript' =>
'https://api.sandbox.ewaypayments.com/JSONP/v1/js',
};
}
}
has 'username'
ult => sub { 'REST' } );
has 'Request_Format' =>
( is => 'rw', required => 1, default => sub { 'JSON' } );
has 'ua' => ( is => 'lazy' );
sub _build_ua {
my $self = shift;
return WWW::Mecha
rAgent::VERSION = '0.0301';
# ABSTRACT: (DEPRECATED) Use Selenium::UserAgent instead
use Moo;
use JSON;
use Cwd qw/abs_path/;
use Carp qw/croak/;
use Selenium::Remote::Driver::Firefox::Profile;
has
s/UserAgent\.pm$/devices.json/;
my $devices;
{
local $/ = undef;
open (my $fh, "<", $devices_file);
$devices = from_json(<$fh>);
close
ddress']
);
sub _build_ShippingAddress { Business::eWAY::RapidAPI::ShippingAddress->new }
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Business::e
my $bundle = create_bundle('Example::Author::KENTNL');
$bundle->configure;
my @stopwords = (qw( JSON ));
for my $wordlist (@stopwords) {
$bundle->add_or_append_policy_field( 'Documentation::PodSpe
use JSON;
use HTTP::Tiny;
use DateTime;
our $VERSION = '0.01';
has url => (
is => 'ro',
isa => 'Str|Undef',
default => 'https://ip-ranges.amazonaws.com/ip-ranges.json'
);
elf->url);
die "Error downloading URL" unless ($response->{ success });
return decode_json($response->{ content });
},
lazy => 1,
);
has sync_token => (
is => 'ro',
is
network information published by Amazon Web Services at https://ip-ranges.amazonaws.com/ip-ranges.json
Please read and understand the information can be found at http://docs.aws.amazon.com/general/la
ead1 EXPORT
=cut
use strict;
use warnings;
use HTTP::Request::Common;
use LWP::UserAgent;
use JSON;
use MIME::Base64 'encode_base64';
use Time::HiRes (qw(gettimeofday));
use DateTime;
use Sys::Hos
'extra' => $params->{'extra'} || {}
};
my $json = JSON->new->utf8(1)->pretty(1)->allow_nonref(1);
return $json->encode( $data );
}
1;
=head1 LICENSE AND COPYRIGHT
Copyrigh
MockObject for test)
meta_file => 'META.json' or
'META.yml' or
'META.yaml', # META file (YAML or JSON which contains module requirement information)
_file) = @_;
return $opt_meta_file if ( defined $opt_meta_file );
for my $file ( qw(META.json META.yml META.yaml) ) {
return $file if ( -e $file );
}
croak "META file not foun
qw( &fix_encoding &fix_encoding_return );
@IGNORE_LIST = qw( Cpanel::JSON::XS::Boolean JSON::XS::Boolean JSON::PP::Boolean JSON::Boolean )
unless scalar @IGNORE_LIST;
}
########################
_LIST, 'JSON::Boolean';
By default the following references will be ignored (no warnings):
=over
=item Cpanel::JSON::XS::Boolean
=item JSON::XS::Boolean
=item JSON::PP::Boolean
=item JSON::Boole
', 'ExpiryMonth', 'ExpiryYear',
'StartMonth', 'StartYear', 'IssueNumber', 'CVN'
);
sub TO_JSON { return { %{ $_[0] } }; }
no Moo;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Business::e