package Net::Duowan::DNS::Common;
use 5.006;
use warnings;
use strict;
use Carp qw/croak/;
use JSON;
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
use vars qw/$VERSION/;
$VERSION = '1.2.0'
eq = POST $url, [ %args ];
my $res = $ua->request($req);
if ($res->is_success ) {
return from_json( $res->decoded_content );
} else {
croak $res->status_line;
}
}
1;
__mapping_data {
my $self = shift;
my $content = $self->_mapping_content;
require JSON;
return JSON->new()->utf8(1)->decode($content);
}
## no critic ( RequireArgUnpacking ProhibitBuiltin
ontent of the URL at C<mapping_url>
=head2 _build__mapping_data
returns the decoded data from C<JSON> stored in C<_mapping_content>
=head1 AUTHOR
Kent Fredric <kentfredric@gmail.com>
=head1 COPYR
if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) {
my $prereqs = parse_meta_json()->effective_prereqs;
my $reqs = $prereqs->requirements_for( 'develop', 'requires' );
my
= cwd();
chdir '/tmp/cpan-fixes';
cpanm(@params);
chdir $cwd;
}
sub parse_meta_json {
$_[0] ||= 'META.json';
require CPAN::Meta;
return CPAN::Meta->load_file( $_[0] );
}
sub import {
m
ixes;
$caller_stash->{cpanm_fix} = *cpanm_fix;
$caller_stash->{parse_meta_json} = *parse_meta_json;
$caller_stash->{capture_stdout} = *capture_stdout;
$caller_stash->{deploy_st
};
require Scalar::Util;
if ( Scalar::Util::blessed($d) and Scalar::Util::blessed($d) eq 'JSON::XS::Boolean' ) {
$properties{$name} = ( $d ? 1 : undef );
return;
}
if ( $d
tegenerator->generate(
propertydata => ... Property definition from JSON ...
propertyname => ... Property name from JSON ...
index => ... Name of current index ...
typename
if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) {
my $prereqs = parse_meta_json()->effective_prereqs;
my $reqs = $prereqs->requirements_for( 'develop', 'requires' );
my
= cwd();
chdir '/tmp/cpan-fixes';
cpanm(@params);
chdir $cwd;
}
sub parse_meta_json {
$_[0] ||= 'META.json';
require CPAN::Meta;
return CPAN::Meta->load_file( $_[0] );
}
sub capture_stdo
ixes;
$caller_stash->{cpanm_fix} = *cpanm_fix;
$caller_stash->{parse_meta_json} = *parse_meta_json;
$caller_stash->{capture_stdout} = *capture_stdout;
$caller_stash->{deploy_st
if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) {
my $prereqs = parse_meta_json()->effective_prereqs;
my $reqs = $prereqs->requirements_for( 'develop', 'requires' );
my
= cwd();
chdir '/tmp/cpan-fixes';
cpanm(@params);
chdir $cwd;
}
sub parse_meta_json {
$_[0] ||= 'META.json';
require CPAN::Meta;
return CPAN::Meta->load_file( $_[0] );
}
sub import {
m
ixes;
$caller_stash->{cpanm_fix} = *cpanm_fix;
$caller_stash->{parse_meta_json} = *parse_meta_json;
$caller_stash->{capture_stdout} = *capture_stdout;
$caller_stash->{deploy_st
if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) {
my $prereqs = parse_meta_json()->effective_prereqs;
my $reqs = $prereqs->requirements_for( 'develop', 'requires' );
my
= cwd();
chdir '/tmp/cpan-fixes';
cpanm(@params);
chdir $cwd;
}
sub parse_meta_json {
$_[0] ||= 'META.json';
require CPAN::Meta;
return CPAN::Meta->load_file( $_[0] );
}
sub import {
m
ixes;
$caller_stash->{cpanm_fix} = *cpanm_fix;
$caller_stash->{parse_meta_json} = *parse_meta_json;
$caller_stash->{capture_stdout} = *capture_stdout;
$caller_stash->{deploy_st
package WWW::NZPost::Tracking;
use strict;
use warnings;
use Carp;
use JSON;
use LWP::UserAgent;
use Moose;
use WWW::NZPost::Tracking::Detail;
use WWW::NZPost::Tracking::Package;
our $VERSION = '0
s},
format => 'json',
mock => $self->{mock},
});
my @packages;
if ($ret->is_success)
{
my $ret = decode_json($ret->content);
return
eve data from the NZ Post API: " .
$ret->status_line;
}
}
=head1 DEPENDENCIES
L<JSON>, L<LWP::UserAgent>, L<Moose>
=head1 BUGS
=head1 DISCLAIMER
The author of this module is not a
package Net::Duowan::DNS::Zones;
use 5.006;
use warnings;
use strict;
use Carp qw/croak/;
use JSON;
use base 'Net::Duowan::DNS::Common';
use vars qw/$VERSION/;
$VERSION = '1.2.0';
sub new {
my
package Finance::btce;
use 5.012004;
use strict;
use warnings;
use JSON;
use LWP::UserAgent;
use Carp qw(croak);
use Digest::SHA qw( hmac_sha512_hex);
use WWW::Mechanize;
require Exporter;
our @ISA
EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT = qw(new);
our $VERSION = '0.1';
our $json = JSON->new->allow_nonref;
sub BTCtoUSD
{
return BtceConversion('btc_usd');
}
sub LTCtoBTC
{
ret
n' => $hash);
$mech->post($url, ['method' => 'getInfo', 'nonce' => $nonce]);
my %apireturn = %{$json->decode($mech->content())};
return \%apireturn;
}
sub TransHistory
{
my ($self, $args) = @_;
package Net::Duowan::DNS::Owner;
use 5.006;
use warnings;
use strict;
use Carp qw/croak/;
use JSON;
use base 'Net::Duowan::DNS::Common';
use vars qw/$VERSION/;
$VERSION = '1.2.0';
sub new {
my
package Net::Duowan::DNS::Records;
use 5.006;
use warnings;
use strict;
use Carp qw/croak/;
use JSON;
use base 'Net::Duowan::DNS::Common';
use vars qw/$VERSION/;
$VERSION = '1.2.0';
sub new {
m
less (ref $records) {
croak "records must be an array reference";
}
$records = to_json($records);
my $psp = $self->{psp};
my $token = $self->{token};
my $act = 'bulk_rec_n
if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) {
my $prereqs = parse_meta_json()->effective_prereqs;
my $reqs = $prereqs->requirements_for( 'develop', 'requires' );
my
> and L</remote_branch> and
asserts L</remote_branch> is not ahead of L</branch>
=begin MetaPOD::JSON v1.1.0
{
"namespace":"Dist::Zilla::Plugin::Git::Remote::Check",
"interface":"class",
le::Git::Remote::Check",
"Dist::Zilla::Role::Git::Remote::Update"
]
}
=end MetaPOD::JSON
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is co
) unless $new_title;
my $res = $self->pocket->_send({
update_title => $self->pocket->json->encode({
$self->item_id => {
url => $self->url,
titl
g() unless $new_tags;
my $res = $self->pocket->_send({
update_tags => $self->pocket->json->encode({
$self->item_id => {
url => $self->url,
tags
) unless defined $new_state;
my $res = $self->pocket->_send({
read => $self->pocket->json->encode({
$self->item_id => {
url => $self->url,
}
traits => [qw/NoGetopt/]
);
has "+$_" => ( traits => [qw/NoGetopt/] )
for qw/api_key base_url ua json items list_since/;
has "+$_" => (documentation => "Set $_. Can also be set in ~/.pocketrc")
for