NAME
App::SpreadRevolutionaryDate::Target::Mastodon - Target class for App::SpreadRevolutionaryDate to handle spreading on Mastodon.
VERSION
version 0.33
METHODS
new
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.
spread
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.
SEE ALSO
- spread-revolutionary-date
- App::SpreadRevolutionaryDate
- App::SpreadRevolutionaryDate::Config
- App::SpreadRevolutionaryDate::Target
- App::SpreadRevolutionaryDate::Target::Twitter
- App::SpreadRevolutionaryDate::Target::Freenode
- App::SpreadRevolutionaryDate::Target::Freenode::Bot
- App::SpreadRevolutionaryDate::Target::Liberachat
- App::SpreadRevolutionaryDate::Target::Liberachat::Bot
- App::SpreadRevolutionaryDate::MsgMaker
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Calendar
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Locale
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Locale::fr
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Locale::en
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Locale::it
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Locale::es
- App::SpreadRevolutionaryDate::MsgMaker::PromptUser
AUTHOR
Gérald Sédrati <gibus@cpan.org>
COPYRIGHT AND LICENSE
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