|
NAMEPithub::Repos::Contents - Github v3 Repo Contents APIVERSIONversion 0.01036METHODSarchive
get
Examples: my $c = Pithub::Repos::Contents->new( repo => 'Pithub', user => 'plu' ); # List all files/directories in the repo root my $result = $c->get; if ( $result->success ) { say $_->{name} for @{ $result->content }; } # Get the Pithub.pm file $result = $c->get( path => 'lib/Pithub.pm' ); print Dumper $result->content if $result->success; readme
Examples: my $c = Pithub::Repos::Contents->new( repo => 'dotfiles', user => 'plu' ); my $result = $c->readme; if ( $result->success ) { print Dumper $result->content; } # Get the readme of branch 'other_branch' $result = $c->readme( params => { ref => 'other_branch' } ); print Dumper $result->content if $result->success; AUTHORJohannes Plunien <plu@cpan.org>COPYRIGHT AND LICENSEThis software is copyright (c) 2011-2019 by Johannes Plunien.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |