Pithub::Repos::Downloads(3pm) | User Contributed Perl Documentation | Pithub::Repos::Downloads(3pm) |
Pithub::Repos::Downloads - Github v3 Repo Downloads API
version 0.01034
POST /repos/:user/:repo/downloads
Examples:
my $d = Pithub::Repos::Downloads->new; my $result = $d->create( user => 'plu', repo => 'Pithub', data => { name => 'new_file.jpg', size => 114034, description => 'Latest release', content_type => 'text/plain', }, ); $d->upload( result => $result, file => '/path/to/file', );
DELETE /repos/:user/:repo/downloads/:id
Examples:
my $d = Pithub::Repos::Downloads->new; my $result = $d->delete( user => 'plu', repo => 'Pithub', download_id => 1, );
GET /repos/:user/:repo/downloads/:id
Examples:
my $d = Pithub::Repos::Downloads->new; my $result = $d->get( user => 'plu', repo => 'Pithub', download_id => 1, );
GET /repos/:user/:repo/downloads
Examples:
my $d = Pithub::Repos::Downloads->new; my $result = $d->list( user => 'plu', repo => 'Pithub', );
Github says: The Downloads API (described below) was deprecated on December 11, 2012. It will be removed at a future date. We recommend using Pithub::Repos::Releases instead.
Johannes Plunien <plu@cpan.org>
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.
2018-03-17 | perl v5.26.1 |