Skip to content

Instantly share code, notes, and snippets.

@leedo
Created January 26, 2011 05:58
Show Gist options
  • Save leedo/796300 to your computer and use it in GitHub Desktop.
Save leedo/796300 to your computer and use it in GitHub Desktop.
get "/{tweet:[0-9]+}" => sub {
my ($req, $res) = @_;
my $id = $req->captures->{tweet};
$ua->get("statuses/show/$id", sub {
my ($hdr, $tweet, $reason) = @_;
$res->send("<pre>".Dumper($tweet)."</pre>");
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment