@args;
push @args, shift; # id
my $uri = sprintf '/conversations/%s/add-external-response.json', @args;
$api->base->call("POST", $uri, @_);
}
=pod
=item add_poll_response
my $res =
my @args;
push @args, shift; # id
my $uri = sprintf '/conversations/%s/add-poll-response.json', @args;
$api->base->call("POST", $uri, @_);
}
=pod
=item get_responses
my $res = $tp
ift;
my @args;
push @args, shift; # id
my $uri = sprintf '/conversations/%s/responses.json', @args;
$api->base->call("GET", $uri, @_);
}
sub responses {
my $self = shift;
Car
my $api = shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/api-keys/%s.json', @args;
$api->base->call("GET", $uri, @_);
}
=pod
=back
=cut
### END auto-generated
1;
shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/import-jobs/%s/close-job.json', @args;
$api->base->call("POST", $uri, @_);
}
=pod
=item post_to_media_assets
my $re
ft;
my @args;
push @args, shift; # id
my $uri = sprintf '/import-jobs/%s/media-assets.json', @args;
$api->base->call("POST", $uri, @_);
}
=pod
=item submit_items
my $res = $tp-
ft;
my @args;
push @args, shift; # id
my $uri = sprintf '/import-jobs/%s/submit-items.json', @args;
$api->base->call("POST", $uri, @_);
}
=pod
=back
=cut
### END auto-generated
1
: Invalid operation '$_[3]' The ways in which you can use UnixTime objects is restricted"}
;
*TO_JSON = \&datetime;
sub unixtime { $_[0][0] || '' };
# Using $ENV{TZ} and the posix functions is ugly
y $api = shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/applications/%s.json', @args;
$api->base->call("GET", $uri, @_);
}
=pod
=item get_badges
my $res = $tp->ap
= shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/applications/%s/badges.json', @args;
$api->base->call("GET", $uri, @_);
}
sub badges {
my $self = shift;
Carp::
my @args;
push @args, shift; # id
my $uri = sprintf '/applications/%s/badges/@learning.json', @args;
$api->base->call("GET", $uri, @_);
}
sub learning_badges {
my $self = shift;
my $api = shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/groups/%s.json', @args;
$api->base->call("GET", $uri, @_);
}
=pod
=item add_member
my $res = $tp->gr
i = shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/groups/%s/add-member.json', @args;
$api->base->call("POST", $uri, @_);
}
=pod
=item post_to_audio_assets
my $re
= shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/groups/%s/audio-assets.json', @args;
$api->base->call("POST", $uri, @_);
}
=pod
=item get_audio_assets
my $res =
{
my $api = shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/blogs/%s.json', @args;
$api->base->call("GET", $uri, @_);
}
=pod
=item add_category
my $res = $tp->
= shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/blogs/%s/add-category.json', @args;
$api->base->call("POST", $uri, @_);
}
=pod
=item begin_import
my $res = $tp-
= shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/blogs/%s/begin-import.json', @args;
$api->base->call("POST", $uri, @_);
}
=pod
=item build_embed_code_for_urls
m
my $api = shift;
my @args;
push @args, shift; # id
my $uri = sprintf '/auth-tokens/%s.json', @args;
$api->base->call("GET", $uri, @_);
}
=pod
=back
=cut
### END auto-generated
1;
$a,$b) = ($_[0]->cents, $_[1] );
new ($_[2] ? $b / $a : $a / $b);
},
'fallback' => 1;
*TO_JSON = \&dollars;
sub cents {
return '' unless defined($_[0][0]);
return $_[0][0]
};
su
t: Invalid operation '$_[3]' The ways in which you can use percent objects is restricted"}
;
*TO_JSON = \&format;
sub value {
return '' unless defined($_[0][0]);
return $_[0][0]
};
sub
rgs, shift; # [% param %]
[% END -%]
my $uri = sprintf '/[% path_format(method.pathChunks) %].json', @args;
$api->base->call("[% method.httpMethod %]", $uri, @_);
}
[% IF canonical != mangled
::FileCache;
use Carp;
use Digest::MD5 qw(md5_hex);
use File::Spec::Functions qw(tmpdir);
use JSON;
use LWP::UserAgent;
use URI;
use WebService::MoviePosterDB::Movie;
=head1 METHODS
=head2 new(
m");
$uri->path("json");
$uri->query_form( map { my ($n, $v) = ($_, $_args{$_}); utf8::encode($n); utf8::encode($v); ($n => $v); } sort keys %_args );
my $json = JSON->new()->decode($self
->_get_page($uri->as_string()));
return WebService::MoviePosterDB::Movie->_new($json);
}
sub _get_secret {
my $self = shift;
my %args = @_;
if ($self->{'api_key'} eq "demo" && $sel
eval $code;
die "eval returned '$@'" if $@;
wantarray ? @out : \@out;
}
sub TO_JSON {
my $self = shift;
return $self->dump(
map { $_->name } @{ $self->[f_query]->pr
ke being right
=head1 VERSION
version 9.99
=head1 DESCRIPTION
Using the C<META.yml> or C<META.json> to work out the prereqs for a distribution without being aware that
authors can do what they wan
stribution hammers home this point by not specifying any prereqs at all in C<META.yml> and C<META.json>
and autogenerates a list of prereqs when C<Makefile.PL> is executed.
So what exactly are the pr
# $_[0][1]->set($_[0],@_);
# }
sub next { croak "Can not call next on a record" }
sub TO_JSON { die "This part doesn't work yet" } #HERE - this needs work
#sub DESTROY { print STDERR "RECORD
}
sub dummy_record{ DUMMY }
sub hashmap_multi { wantarray?():{} }
sub hashmap_single{ wantarray?():{} }
sub next { DUMMY }
sub where { DUMMY }
sub count { 0 }
sub TO_JSON { [] }
1;
a work barely in progress... ;)
use strict;
use base 'DBR::Common';
use DBR::Config::Field;
use JSON;
use Data::Dumper;
sub new {
my( $package ) = shift;
my %params = @_;
my $sel
m object: Invalid operation '$_[3]' The ways in which you can use an enum are restricted"}
;
*TO_JSON = \&chunk;
sub id { $_[0][0]->[ v_id ] }
sub handle { $_[0][0]->[ v_handle ] }
sub name
ocation
));
sub _new {
my $class = shift;
my $json = shift;
my $self = {};
bless $self, $class;
$self->image_location($json->{'image_location'});
return $self;
}
=head1 ME
;
my $json = shift;
my $self = {};
if (defined $json->{'errors'}) { croak join("; ", map {s/\.*$//; $_} @{$json->{'errors'}}); }
bless $self, $class;
$self->imdb($json->{'imdb'}
$self->title($json->{'title'});
$self->year($json->{'year'});
$self->page($json->{'page'});
$self->posters( [ map { WebService::MoviePosterDB::Poster->_new($_) } @{$json->{'posters'}} ]