> utility for running methods
against a SPORE definition from the commandline:
spore -s github.json list_repos username=tm604
=cut
1;
__END__
=head1 SEE ALSO
=head1 AUTHOR
Tom Molesworth <cpa
SCRIPTION
No user-serviceable parts inside. See L<Net::Async::SPORE::Loader> instead.
=cut
use JSON::MaybeXS;
=head2 new
Instantiates this object.
=cut
sub new { my $class = shift; bless { @_ }
eq) = @_;
$self->_transport->do_request(
request => $req
)->transform(
done => sub { decode_json(shift->content) }
)
}
1;
__END__
=head1 AUTHOR
Tom Molesworth <cpan@perlsite.co.uk>
=head1
N
Version 0.003
=head1 SYNOPSIS
my $api = Net::Async::SPORE::Loader->new_from_file(
'sample.json',
transport => 'Net::Async::HTTP',
class => 'Sample::API',
);
$api->some_request(x => 1
classes in memory.
=cut
use Net::Async::SPORE::Request;
use Net::Async::SPORE::Definition;
use JSON::MaybeXS;
use File::Spec;
sub inject_method(&@);
=head1 METHODS
=cut
=head2 new_from_file
In
w API object from the given file.
my $api = Net::Async::SPORE::Loader->new_from_file(
'sample.json',
transport => 'Net::Async::HTTP',
class => 'Sample::API',
);
$api->some_request(x => 1