CGI::Untaint::Twitter - Validate a Twitter ID in a CGI script
Version 0.05
CGI::Untaint::Twitter is a subclass of CGI::Untaint used to validate if the given Twitter ID is valid.
use CGI::Info; use CGI::Untaint; use CGI::Untaint::Twitter; # ... my $info = CGI::Info->new(); my $params = $info->params(); # ... my $u = CGI::Untaint->new($params); my $tid = $u->extract(-as_Twitter => 'twitter'); # $tid will be lower case
Validates the data. Returns a boolean if $self->value is a valid twitter ID.
Set various options and override default values.
use CGI::Info; use CGI::Untaint; use CGI::Untaint::Twitter { access_token => 'xxxxxx', access_token_secret => 'yyyyy', consumer_key => 'xyzzy', consumer_secret => 'plugh', };
Nigel Horne, <njh at bandsman.co.uk>
<njh at bandsman.co.uk>
Twitter only allows 150 requests per hour. If you exceed that, CGI::Untaint::Twitter won't validate and will assume all ID's are valid.
CGI::Untaint::Twitter
Please report any bugs or feature requests to bug-cgi-untaint-twitter at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Untaint-Twitter. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cgi-untaint-twitter at rt.cpan.org
CGI::Untaint
You can find documentation for this module with the perldoc command.
perldoc CGI::Untaint::Twitter
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-Untaint-Twitter
CPAN Ratings
http://cpanratings.perl.org/d/CGI-Untaint-Twitter
Search CPAN
http://search.cpan.org/dist/CGI-Untaint-Twitter
Copyright 2012-2019 Nigel Horne.
This program is released under the following licence: GPL
To install CGI::Untaint::Twitter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Untaint::Twitter
CPAN shell
perl -MCPAN -e shell install CGI::Untaint::Twitter
For more information on module installation, please visit the detailed CPAN module installation guide.