NAME

App::SpreadRevolutionaryDate::Target::Twitter - Target class for App::SpreadRevolutionaryDate to handle spreading on Twitter.

VERSION

version 0.19

METHODS

new

Constructor class method. Takes a hash argument with the following mandatory keys: consumer_key, consumer_secret, access_token, and access_token_secret, with all values being strings. Authentifies to Twitter and returns an App::SpreadRevolutionaryDate::Target::Twitter object.

spread

Spreads a message to Twitter. 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 Twitter.

SEE ALSO

spread-revolutionary-date
App::SpreadRevolutionaryDate
App::SpreadRevolutionaryDate::Config
App::SpreadRevolutionaryDate::Target
App::SpreadRevolutionaryDate::Target::Mastodon
App::SpreadRevolutionaryDate::Target::Freenode
App::SpreadRevolutionaryDate::Target::Freenode::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-Dinet <gibus@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2019 by Gérald Sédrati-Dinet.

This is free software, licensed under:

The GNU General Public License, Version 3, June 2007