Created
August 29, 2013 16:14
-
-
Save haarg/6380159 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MetaCPAN::API | |
->new(base_url, user_agent) | |
->author(author_id) # returns a ::Author object | |
->author_search({ query }) # returns a ::ResultSet object | |
# additional methods for objects | |
# additional methods for backcompat | |
MetaCPAN::API::Author | |
->name | |
# etc | |
MetaCPAN::API::Request | |
# used for querying and interpreting results | |
MetaCPAN::API::ResultSet | |
->first | |
->page | |
->all # all pages? | |
MetaCPAN::API::ResultIterator | |
->next | |
# automatic pagination | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment