App::SpreadRevolutionaryDate::Target::Mastodon - Target class for App::SpreadRevolutionaryDate to handle spreading on Mastodon.
version 0.33
Constructor class method. Takes a hash argument with the following mandatory keys: instance, client_id, client_secret, and access_token, with all values being strings. Authentifies to Mastodon and returns an App::SpreadRevolutionaryDate::Target::Mastodon object.
instance
client_id
client_secret
access_token
App::SpreadRevolutionaryDate::Target::Mastodon
Spreads a message to Mastodon. Takes one mandatory argument: $msg which should be the message to spread as a characters string; and one optional argument: test, which defaults to false, and if true prints the message on standard output instead of spreading on Mastodon.
$msg
test
false
true
Gérald Sédrati <gibus@cpan.org>
This software is Copyright (c) 2019-2023 by Gérald Sédrati.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install App::SpreadRevolutionaryDate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::SpreadRevolutionaryDate
CPAN shell
perl -MCPAN -e shell install App::SpreadRevolutionaryDate
For more information on module installation, please visit the detailed CPAN module installation guide.