The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::GitHub::V1::Project::Wiki - GitHub Project Wiki Section (V1)

SYNOPSIS

    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" );

DESCRIPTION

login required

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' );

METHODS

new_page
    $wiki->new_page( 'PageTitle', "Page Content\n\nLine 2\n" );

return 1 if page is created successfully.

login required.

edit_page
    $wiki->edit_page( 'PageTitle', "New Page Content\n\nLine 2\n" );

return 1 if page is updated successfully.

login required.

edit_or_new
    $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.

login required.

AUTHOR

Fayland Lam, <fayland at gmail.com>

COPYRIGHT & LICENSE

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.