WWW::Fimfiction - CRUD tasks for fimfiction.net
use WWW::Fimfiction; my $ua = WWW::Fimfiction->new; $ua->login($username, $password); $ua->add_chapter($story_id, 'My Fabulous Chapter %i%', $text);
Methods without explicit return values will return the WWW::Fimfiction object. Methods will croak if something goes wrong.
Bear in mind that the site doesn't take kindly to request spam, so consecutive calls will have a small delay placed between them so the server doesn't get angry with you.
Makes a new object.
Args: ($username, $password)
Authenticates the user. Tasks that manipulate data on the site require authentication, so you'll have to call this before trying to add/edit/delete stuff.
Args: ($story_id, [$chapter_title, $content])
Adds a chapter to the given story. Returns the chapter id.
If provided, additional arguments will be given to edit_chapter().
Args: ($id, $title, $content)
Edits chapter with the given title and content.
Args: ($id)
Toggles the publish status of a chapter. Returns 1 or 0 indicating the chapter's new publish status.
Deletes a chapter.
Returns a hash ref of story metadata.
Cameron Thornton <cthor@cpan.org>
Copyright (c) 2012 Cameron Thornton.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::Fimfiction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Fimfiction
CPAN shell
perl -MCPAN -e shell install WWW::Fimfiction
For more information on module installation, please visit the detailed CPAN module installation guide.