[MetaCPAN] How to find author for particular version

Olaf Alders olaf at wundersolutions.com
Mon Mar 5 17:33:09 GMT 2012


On 2012-03-04, at 2:38 PM, Alexander Todorov wrote:

> Hi guys,
> using the API I can easily get the author of the latest release. However I don't see a way how to get the author of some previous version. For example:
> 
> YAML-Syck-1.20 author TODDR
> YAML-Syck-1.07_01 author AVAR
> 
> How do I get to know that AVAR is the author of YAML-Syck-1.07_01 using the API?

Hi Alex,

You could try something like this:

curl -XPOST api.metacpan.org/v0/release/_search -d '{ 
  "query" : { "match_all" : {  } },
  "fields" : [ "author" ],
  "filter" : { "term" : { "release.name" : "YAML-Syck-1.07_01" } }
}'


Best,

Olaf
--
Olaf Alders
olaf at wundersolutions.com

http://www.wundersolutions.com
http://twitter.com/wundercounter

866 503 2204 (Toll free - North America)
416 944 8306 (direct)




More information about the MetaCPAN mailing list