NAME
Net::PMP::CollectionDoc::Links - links from a Net::PMP::CollectionDoc
SYNOPSIS
my $doc = $pmp_client->get_doc( $some_uri );
my $query_links = $doc->get_links('query');
my $query_for_docs = $query_links->rels("urn:collectiondoc:query:docs");
for my $link (@$query_for_docs) {
printf("link: %s [%s]\n", $link->title, $link->href);
}
DESCRIPTION
Net::PMP::CollectionDoc::Links represents the links in a Collection.doc+JSON PMP API response.
METHODS
links
Returns arrayref of links.
type
The flavor of the Links object.
query_rel_types
If type is query
then this method can used to return a hashref of rel names to titles.
rels(urn[, ...urn])
Returns arrayref of links that match urn.
AUTHOR
Peter Karman, <karman at cpan.org>
BUGS
Please report any bugs or feature requests to bug-net-pmp at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-PMP. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Net::PMP::CollectionDoc::Links
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
American Public Media and the Public Media Platform sponsored the development of this module.
LICENSE AND COPYRIGHT
Copyright 2013 American Public Media Group
See the LICENSE file that accompanies this module.