NAME
Pithub::Repos::Downloads
VERSION
version 0.01000
METHODS
create
Create a new download
POST /repos/:user/:repo/downloads
TODO: Creating downloads is currently not supported!
Examples:
$result = $p->repos->downloads->create(
user => 'plu',
repo => 'Pithub',
data => { name => 'some download' },
);
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',
);