MetaCPAN::Client::Author - An Author data object
version 2.030000
my $author = $mcpan->author('MICKEY');
a MetaCPAN author entity object.
The author's pause id, which is a string like MICKEY or XSAWYERX.
MICKEY
XSAWYERX
The author's full name, if they've provided this in their MetaCPAN profile. This may contain Unicode characters.
An ASCII-only version of the author's full name, if they've provided this in their MetaCPAN profile.
The author's city, if they've provided this in their MetaCPAN profile.
The author's region, if they've provided this in their MetaCPAN profile.
The author's country, if they've provided this in their MetaCPAN profile.
An ISO8601 datetime string like 2016-11-19T12:41:46 indicating when the author last updated their MetaCPAN profile. This is always provided in UTC.
2016-11-19T12:41:46
The author's CPAN directory, which is something like id/P/PE/PERLER.
id/P/PE/PERLER
The author's gravatar.com user URL, if they have one. This URL is generated using PAUSEID@cpan.org.
The user's internal MetaCPAN id.
This is an arrayref containing zero or more hashrefs. Each hashref contains two keys, name and id. The known names are currently paypal, wishlist, and flattr. The id will be an appropriate id or URL for the thing in question.
name
id
paypal
wishlist
flattr
This may be empty if the author has not provided this information in their MetaCPAN profile.
For example:
[ { "name" => "paypal", "id" => "brian.d.foy@gmail.com" }, { "name" => "wishlist", "id" => "http://amzn.com/w/4O7IX9ZNQJR" }, ],
This is an arrayref containing zero or more email addresses that the author has added to their MetaCPAN profile. Note that this does not include the AUTHOR@cpan.org email address that all CPAN authors have.
AUTHOR@cpan.org
This is an arrayref of website URLs provided by the author in their MetaCPAN profile.
This is an arrayref containing zero or more hashrefs. Each hashref contains two keys, name and id. The names are things like github or stackoverflow. The id will be an appropriate id for the site in question.
github
stackoverflow
[ { name => "amazon", id => "B002MRC39U" }, { name => "stackoverflow", id => "brian-d-foy" }, ]
This is an arrayref containing zero or more hashrefs. Each hashref contains two keys, name and url. The names are things like Minneapolis.pm.
url
Minneapolis.pm
This is a hashref where the keys are a link type, and the values are URLs. The currently known keys are:
cpan_directory
The author's CPAN directory.
backpan_directory
The author's BackCPAN directory.
cpantesters_reports
The author's CPAN Testers Reports page.
cpantesters_matrix
The author's CPAN Testers matrix page.
cpants
The author's CPANTS page.
metacpan_explorer
A link to the MetaCPAN explorer site pre-populated with a request for the author's profile.
This is an arrayref containing zer or more hashrefs. Each hashref contains two keys, url and feed. For example:
feed
{ url => "http://blogs.perl.org/users/brian_d_foy/", feed => "http://blogs.perl.org/users/brian_d_foy/atom.xml", }
This is a hashref containing counts for various types of releases. The known keys are:
cpan
The total number of distribution uplaods the author currently has on CPAN.
latest
The total number of unique distributions the author currently has on CPAN.
backpan-only
The number of distribution uploads currently only available via BackPAN.
Returns a hashref. The contents of this are entirely arbitrary and will vary by author.
Ensures format of the input.
my $releases = $author->releases();
This method returns a MetaCPAN::Client::ResultSet of MetaCPAN::Client::Release objects. It includes all of the author's releases with the latest status.
Returns a link to the author's page on MetaCPAN.
Sawyer X <xsawyerx@cpan.org>
Mickey Nasriachi <mickey@cpan.org>
This software is copyright (c) 2016 by Sawyer X.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MetaCPAN::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MetaCPAN::Client
CPAN shell
perl -MCPAN -e shell install MetaCPAN::Client
For more information on module installation, please visit the detailed CPAN module installation guide.