Net::OBS::Client - simple OBS API calls
# use Net::OBS::Client; my $c = Net::OBS::Client->new( apiurl => $apiurl, use_oscrc => 0, ); my $prj = $c->project( name => $project, ); my $pkg = $c->package( project => 'OBS:Server:Unstable', name => 'obs-server', repository => 'openSUSE_Factory', arch => 'x86_64', ); my $res = $c->buildresults( project => $project, package => $package, repository => $repo, arch => $arch, ); # use Net::OBS::Client::Project; use Net::OBS::Client::Package; my $prj = Net::OBS::Client::Project->new( apiurl => $apiurl, name => $project, use_oscrc => 0, ); my $s = $prj->fetch_resultlist(package => $package); my $pkg = Net::OBS::Client::Package->new( project => 'OBS:Server:Unstable', name => 'obs-server', repository => 'openSUSE_Factory', arch => 'x86_64', use_oscrc => 0, apiurl => 'https://api.opensuse.org/public' ); my $state = $pkg->fetch_status();
Net::OBS::Client aims to simplify usage of OBS (https://openbuildservice.org) API calls in perl.
Frank Schreiner, <frank at samaxi.de>
<frank at samaxi.de>
Net::OBS::Client::Package, Net::OBS::Client::Project, Net::OBS::Client::BuildResults
You can find some examples in the "" in contrib directory
Copyright 2016 Frank Schreiner <frank@samaxi.de>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::OBS::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::OBS::Client
CPAN shell
perl -MCPAN -e shell install Net::OBS::Client
For more information on module installation, please visit the detailed CPAN module installation guide.