-
-
03 Feb 2011 04:41:02 UTC
- Distribution: Text-Tweet
- Module version: 0.004
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (801 / 1 / 0)
- Kwalitee
Bus factor: 1- 87.72% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (11.98KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Torsten Raudssus L<http://www.raudssus.de/>
- Dependencies
- Moo
- Text::Trim
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Text::Tweet - Optimize a tweet based on given keywords
VERSION
version 0.004
SYNOPSIS
use Text::Tweet; my $tweeter = new Text::Tweet({ maxlen => 140, marker => '#', hashtags_at_end => 0, keywords => [ 'Perl', 'Twitter', 'Facebook', 'Private' ], }); my $tweet = $tweeter->make( 'This is my Perl Twitter Facebook Tweet', \'http://some.url/' ); # This is my #Perl #Twitter #Facebook Tweet http://some.url/ #private my $next_tweet = $tweeter->make_without_keywords( 'This is my Perl Twitter Facebook Tweet', \'http://some.url/', [ 'Tweet' ] ); # This is my Perl Twitter Facebook #Tweet http://some.url/ my $other_tweeter = new Text::Tweet({ hashtags_at_end => 1, }); my $other_tweet = $other_tweeter->make( 'This is my Perl Twitter Facebook Tweet', \'http://some.url/', [ 'Perl', 'Twitter', 'Facebook' ] ); # This is my Perl Twitter Facebook Tweet http://some.url/ #perl #twitter #facebook
DESCRIPTION
This package is nothing more than a little helper for making a more optimized tweet. It is supposed to be part of some bigger application, for example for automatic Tweet generation out of RSS, or integrated via Ajax on a webpage to offer more effective tweets for the user.
CONTRIBUTORS
edenc - giving API design hints
AUTHOR
Torsten Raudssus <torsten@raudssus.de> http://www.raudssus.de/
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Raudssus Social Software.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Text::Tweet, copy and paste the appropriate command in to your terminal.
cpanm Text::Tweet
perl -MCPAN -e shell install Text::Tweet
For more information on module installation, please visit the detailed CPAN module installation guide.