Subject: | Use "created_at" instead of "time" in documentation |
The Net::Twitter::Lite documentation refers to "$status->{time}". That
key does not appear to be present but "$status->{created_at}" does
exist. This patch updates "README" and "src/net-twitter-lite.tt2".
Subject: | net-twitter-lite-created_at.patch |
diff --git a/README b/README
index d986c19..f8c1fa4 100644
--- a/README
+++ b/README
@@ -17,7 +17,7 @@ SYNOPSIS
eval {
my $statuses = $nt->friends_timeline({ since_id => $high_water, count => 100 });
for my $status ( @$statuses ) {
- print "$status->{time} <$status->{user}{screen_name}> $status->{text}\n";
+ print "$status->{created_at} <$status->{user}{screen_name}> $status->{text}\n";
}
};
warn "$@\n" if $@;
diff --git a/src/net-twitter-lite.tt2 b/src/net-twitter-lite.tt2
index 3572b7c..e8c972c 100644
--- a/src/net-twitter-lite.tt2
+++ b/src/net-twitter-lite.tt2
@@ -462,7 +462,7 @@ This document describes Net::Twitter::Lite version [% VERSION %]
eval {
my $statuses = $nt->friends_timeline({ since_id => $high_water, count => 100 });
for my $status ( @$statuses ) {
- print "$status->{time} <$status->{user}{screen_name}> $status->{text}\n";
+ print "$status->{created_at} <$status->{user}{screen_name}> $status->{text}\n";
}
};
warn "$@\n" if $@;