The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 0.07

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

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