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

App::Toot - post a status to Mastodon

SYNOPSIS

 use App::Toot;
 my $app = App::Toot->new({ config => 'default', status => 'toot all day' });
 my $ret = $app->run();

DESCRIPTION

App::Toot is a program to post statues to Mastodon.

For the commandline tool, see the documentation for toot or man toot.

INSTALLATION

 perl Makefile.PL
 make && make test && make install

METHODS

new

Class constructor for the App::Toot object.

Loads and sets the config and status keys into the object.

ARGUMENTS

The arguments for the new method must be passed as a hashref containing the following keys:

config

String value of the config section to load.

Required.

status

String value of the status to post.

Required.

RETURNS

Returns an App::Toot object.

run

Posts the status to Mastodon.

ARGUMENTS

None.

RETURNS

Returns a Mastodon::Entity::Status object.

CONFIGURATION

For configuration, see the documentation for App::Toot::Config or perldoc App::Toot::Config.

COPYRIGHT AND LICENSE

Copyright (c) 2023 Blaine Motsinger under the MIT license.

AUTHOR

Blaine Motsinger blaine@renderorange.com