The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mojo::WebService::Twitter::Util - Utility functions for Twitter client

SYNOPSIS

 use Mojo::WebService::Twitter::Util 'parse_twitter_timestamp';

 my $epoch = parse_twitter_timestamp('Fri Oct 23 17:18:19 +0100 2015')->epoch;

DESCRIPTION

Mojo::WebService::Twitter::Util contains utility functions used by Mojo::WebService::Twitter for interacting with the Twitter API. All functions are exportable on demand.

FUNCTIONS

parse_twitter_timestamp

 my $time = parse_twitter_timestamp($ts);

Takes a timestamp string in the format returned by Twitter and returns a corresponding Time::Piece object in UTC.

twitter_authorize_url

 my $url = twitter_authorize_url($token);

Takes an OAuth 1.0 request token and returns a Mojo::URL for manual user authorization.

BUGS

Report any issues on the public bugtracker.

AUTHOR

Dan Book <dbook@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Dan Book.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)

SEE ALSO

Mojo::WebService::Twitter