Net::GitHub::V1::Project::Wiki - GitHub Project Wiki Section (V1)
use Net::GitHub::V1::Project::Wiki; my $wiki = Net::GitHub::V1::Project::Wiki->new( owner => 'fayland', name => 'perl-net-github', login => 'fayland', password => 'passmein', # your real login/password ); $wiki->new_page( 'PageTitle', "Page Content\n\nLine 2\n" ); $wiki->edit_page( 'PageTitle', "New Page Content\n\nLine 2\n" ); $wiki->edit_or_new( 'PageTitle', "Page Content\n\nLine 2\n" );
For the following "login required", it means:
you must specify the login and password in new
my $wiki = Net::GitHub::V1::Project::Wiki->new( owner => 'fayland', name => 'perl-net-github', login => 'fayland', password => 'passmein', # your real login/password );
OR you must call signin before the method
$wiki->signin( 'login', 'password' );
$wiki->new_page( 'PageTitle', "Page Content\n\nLine 2\n" );
return 1 if page is created successfully.
login required.
$wiki->edit_page( 'PageTitle', "New Page Content\n\nLine 2\n" );
return 1 if page is updated successfully.
$wiki->edit_or_new( 'PageTitle', "Page Content\n\nLine 2\n" );
fallback to new_page if page is not created yet, or else, fallback to edit_page.
Fayland Lam, <fayland at gmail.com>
<fayland at gmail.com>
Copyright 2009 Fayland Lam, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::GitHub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::GitHub
CPAN shell
perl -MCPAN -e shell install Net::GitHub
For more information on module installation, please visit the detailed CPAN module installation guide.