NAME
Pithub::Repos::Downloads - Github v3 Repo Downloads API
VERSION
version 0.01002
METHODS
create
Create a new download
POST /repos/:user/:repo/downloads
Examples:
$result = $p->repos->downloads->create( user => 'plu', repo => 'Pithub', data => { name => 'some download' }, );
TODO: Creating downloads is currently not supported!
delete
Delete a download
DELETE /repos/:user/:repo/downloads/:id
Examples:
$result = $p->repos->downloads->delete( user => 'plu', repo => 'Pithub', download_id => 1, );
get
Get a single download
GET /repos/:user/:repo/downloads/:id
Examples:
$result = $p->repos->downloads->get( user => 'plu', repo => 'Pithub', download_id => 1, );
list
List downloads for a repository
GET /repos/:user/:repo/downloads
Examples:
$result = $p->repos->downloads->list( user => 'plu', repo => 'Pithub', );
AUTHOR
Johannes Plunien <plu@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Johannes Plunien.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.