Skip to content

Commit

Permalink
updated SYNOPSIS
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Dec 5, 2008
1 parent 1e3611b commit cd41b76
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lib/Web/oEmbed.pm
Expand Up @@ -104,14 +104,16 @@ Web::oEmbed - oEmbed consumer
my $response = eval { $consumer->embed("http://www.flickr.com/photos/bulknews/2752124387/") };
if ($response) {
$response->matched_uri; # 'http://www.flickr.com/photos/bulknews/2752124387/'
$response->type; # 'photo'
$response->title; # title of the photo
$response->url; # JPEG URL
$response->width; # JPEG width
$response->height; # JPEG height
print $response->render; # handy shortcut to generate <img/> tag
$response->matched_uri; # 'http://www.flickr.com/photos/bulknews/2752124387/'
$response->type; # 'photo'
$response->title; # title of the photo
$response->url; # JPEG URL
$response->width; # JPEG width
$response->height; # JPEG height
$response->provider_name; # Flickr
$response->provider_url; # http://www.flickr.com/
print $response->render; # handy shortcut to generate <img/> tag
}
=head1 DESCRIPTION
Expand Down

0 comments on commit cd41b76

Please sign in to comment.