App-Twimap

 view release on metacpan or  search on metacpan

t/email.t  view on Meta::CPAN

#!/home/acme/perl-5.12.3/bin/perl
use strict;
use warnings;
use 5.12.0;
use lib 'lib';
use App::Twimap;
use Data::Dumper;
use Test::More;
use Test::Differences::Color;

my $tweet = App::Twimap::Tweet->new(
    oembed_urls => 1,
    data        => {
        'retweeted' => 0,
        'source' =>
            '<a href="http://www.echofon.com/" rel="nofollow">Echofon</a>',
        'favorited'     => 0,
        'coordinates'   => undef,
        'place'         => undef,
        'retweet_count' => 0,
        'entities'      => {
            'hashtags'      => [],
            'user_mentions' => [],
            'urls'          => [
                {   'display_url'  => 'lockerz.com/s/135515455',
                    'expanded_url' => 'http://lockerz.com/s/135515455',
                    'url'          => 'http://t.co/kkxnMoL',
                    'indices'      => [ 10, 29 ]
                }
            ]
        },
        'truncated'                 => 0,
        'created_at'                => 'Sat Sep 03 19:39:51 +0000 2011',
        'in_reply_to_status_id_str' => undef,
        'contributors'              => undef,
        'text'                      => 'Breakfast http://t.co/kkxnMoL',
        'in_reply_to_user_id'       => undef,
        'user'                      => {
            'friends_count'       => 505,
            'follow_request_sent' => 0,
            'profile_image_url' =>
                'http://a3.twimg.com/profile_images/427205513/arty_normal.jpg',
            'profile_background_image_url_https' =>
                'https://si0.twimg.com/profile_background_images/38511862/antisocial.gif',
            'profile_sidebar_fill_color' => 'e0ff92',
            'profile_background_color'   => '6699cc',
            'notifications'              => 0,
            'url'                        => 'http://thegestalt.org/simon/',
            'id'                         => 9066762,
            'is_translator'              => 0,
            'following'                  => 1,
            'screen_name'                => 'deflatermouse',
            'lang'                       => 'en',
            'location'                   => 'San Francisco',
            'followers_count'            => 583,
            'statuses_count'             => 1852,
            'name'                       => 'Simon Wistow',
            'description'                => '',
            'favourites_count'           => 2,
            'profile_background_tile'    => 0,
            'listed_count'               => 44,
            'contributors_enabled'       => 0,
            'profile_link_color'         => '0000ff',
            'profile_image_url_https' =>
                'https://si0.twimg.com/profile_images/427205513/arty_normal.jpg',
            'profile_sidebar_border_color' => '87bc44',
            'created_at'            => 'Mon Sep 24 09:59:53 +0000 2007',
            'utc_offset'            => -28800,
            'verified'              => 0,



( run in 0.733 second using v1.01-cache-2.11-cpan-6aa56a78535 )