to get image dimensions";
return {
'@context' => 'http://iiif.io/api/image/3/context.json',
type => 'ImageService3',
protocol => 'http://iiif.io/api/image',
se JSON;
use DateTime;
use DateTime::Format::JSON::MicrosoftDateFormat (to_json=>1); #imports DateTime::TO_JSON method
my $formatter=DateTime::Format::JSON::MicrosoftDateFormat->new;
my $json=JSON->n
ew->convert_blessed->pretty;
my $dt=DateTime->now(formatter=>$formatter);
print $json->encode({now=>$dt});
ing utf-8
=head1 NAME
Data::Validate::CSV - read and validate CSV
=head1 SYNOPSIS
CSV Schema (JSON):
{
"@context": "http://www.w3.org/ns/csvw",
"url": "countries.csv",
"tableSchema"
my $table = Data::Validate::CSV::Table->new(
schema => path('countries.csv-metadata.json'),
input => path('countries.csv'),
has_header => !!0,
);
while (my $row = $ta
tributes:
=over
=item C<< schema >>
A schema for the table. Can be a hashref, a JSON string, a scalar ref to
a JSON string, or a L<Path::Tiny> path to a file containing the schema.
=item C<< input
}; use warnings; $^W=1;
use Symbol ();
use Jacode4e::RoundTrip; # pmake.bat makes META.yml, META.json and Makefile.PL by /^use /
#--------------------------------------------------------------------
t', $file_or_hash, ref($file_or_hash) );
}
my $r = $self->request( 'POST', $self->uri . '.json?import_type=instructure_csv&extension=zip' );
$r->content_type( 'application/zip' );
$r->
ie 'id must be given!';
return $self->send( $self->request( 'GET', $self->uri . '/' . $id . '.json' ) );
}
__PACKAGE__->meta->make_immutable;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Can
head2 sendzip
send zip data as POST ->uri
=head2 zipstatus
get sendzip status as GET ->uri/$id.json
=head1 AUTHOR
Ted Katseres
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2019 b
bject response from POST ->uri / $csvfile
=head2 csvstatus
get sendfile status as GET ->uri/$id.json
=head1 AUTHOR
Ted Katseres
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2019 b
WG::API::Base;
use Modern::Perl '2015';
use Moo::Role;
use WG::API::Error;
use HTTP::Tiny;
use JSON;
use Data::Dumper;
use Log::Any qw($log);
use URI;
use URI::QueryParam;
=encoding utf8
=head1 V
( $params, %passed_params ) );
return $self->_parse( $response->{'status'} eq '200' ? decode_json $response->{'content'} : undef );
}
sub _post {
my ( $self, $uri, $params, %passed_params )
( $params, %passed_params ) );
return $self->_parse( $response->{'status'} eq '200' ? decode_json $response->{'content'} : undef );
}
sub _parse {
my ( $self, $response ) = @_;
if ( !$r
I<< Linux version 5.0.0-37-generic >>.
Benchmark with C<< bencher -m StringPodQuote --env-hashes-json '[{"PERL5OPT":"-Iarchive/String-PodQuote-0.002/lib"},{"PERL5OPT":"-Iarchive/String-PodQuote-0.003
$pkg->meta;
}
# dzil also wants to get abstract for main module to put in dist's
# META.{yml,json}
sub before_build {
my $self = shift;
my $name = $self->zilla->name;
my $class = $n
v => 1.1,
summary => 'Encode lines of input (in standard input or arguments) '.
'as JSON strings',
args => {
%arg_strings,
},
result => {
schema => 'str*',
=> 1.1,
summary => 'Interpret lines of input (in standard input or arguments) as '.
'JSON strings and return the decoded value',
args => {
%arg_strings,
},
result => {
%args) -> [status, msg, payload, meta]
Encode lines of input (in standard input or arguments) as JSON strings.
This function is not exported.
Arguments ('*' denotes required arguments):
=over 4
=
se warnings;
use utf8;
use Yandex::Disk::Public;
use Carp qw/croak carp/;
use LWP::UserAgent;
use JSON::XS;
use File::Basename;
use URI::Escape;
use Encode;
use IO::Socket::SSL;
use Term::Sk;
our $VE
k perl module");
$ua->default_header('Accept' => 'application/json');
$ua->default_header('Content-Type' => 'application/json');
$ua->default_header('Connection' => 'keep-alive');
/';
my $res = $self->__request($url, "GET");
if ($res->is_success) {
return __fromJson($res->decoded_content);
}
else {
croak "Cant execute request to $url: " . $res->s
use Moose;
use namespace::autoclean;
use LWP::UserAgent;
use Hash::Merge qw/merge/;
use URI;
use JSON;
has debug => ( is => 'ro', lazy => 1, default => 0 );
has scheme => ( is => 'ro', lazy => 1, d
self->send( $request ) );
}
}
}
return $struct;
}
sub decode { from_json $_[1]; }
sub _parse_link {
my $link = shift;
$link =~ s/\R//g;
my %struct = map { $
turns a hashref data structure as response from Canvas.
=head2 decode( 'jsonstring' );
returns results from from_json on jsonstring
=head2 encode_url( $content )
encode structure to url
=head1 AU
## or but why
my $terms = $canvas->api( 'CanvasCloud::API::Account::Term' )->list;
print to_json( $terms ); ## show contents of what was returned!!!
=head1 DESCRIPTION
This module provides a
agick qw(info convert);
use File::Spec;
use Try::Tiny;
use Plack::Request;
use IIIF::Request;
use JSON::PP;
use File::Temp qw(tempdir);
use Digest::MD5 qw(md5_hex);
use HTTP::Date;
use Plack::MIME;
P
uest
if ( $local eq '' ) {
return redirect( $file->{id} . "/info.json" );
}
elsif ( $local eq 'info.json' ) {
return $self->info_response($file);
}
# allow abbrevi
extraFeatures => [
qw(
baseUriRedirect canonicalLinkHeader cors jsonldMediaType mirroring
profileLinkHeader
regionByPct regionByPx regionS
SV::Schema'->new_from_hashref($_) },
Str|ScalarRef, q{ 'Data::Validate::CSV::Schema'->new_from_json($_) },
Path, q{ 'Data::Validate::CSV::Schema'->new_from_file($_) },
],
));
__PACKAG
}; use warnings; $^W=1;
use Symbol ();
use Jacode4e::RoundTrip; # pmake.bat makes META.yml, META.json and Makefile.PL by /^use /
#--------------------------------------------------------------------
}; use warnings; $^W=1;
use Symbol ();
use Jacode4e::RoundTrip; # pmake.bat makes META.yml, META.json and Makefile.PL by /^use /
#--------------------------------------------------------------------
}; use warnings; $^W=1;
use Symbol ();
use Jacode4e::RoundTrip; # pmake.bat makes META.yml, META.json and Makefile.PL by /^use /
#--------------------------------------------------------------------
Quick::Upload;
use Mo qw( default required );
our $VERSION = '1.0002';
use AWS::CLIWrapper;
use JSON::PP ();
### required attributes
has zip_filename => required => 1;
has name => required
acpan.org/pod/AWS::Lambda::Quick for more info.',
'assume-role-policy-document' => <<'JSON',
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRo
"apigateway.amazonaws.com"
]
}
}
]
}
JSON
}
);
$self->debug('new role created');
$self->debug('attaching permissions to
eing passed in
your environment:
#!/usr/bin/perl
use strict;
use warnings;
use JSON::PP;
use AWS::Lambda::Quick (
name => 'echo',
);
sub handler {
my $
,
headers => {
'Content-Type' => 'application/json',
},
body => encode_json($data),
};
}
1;
=head3 Create a new integration-respon