NAME

Net::OBS::Client - simple OBS API calls

SYNOPSIS

#
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();

DESCRIPTION

Net::OBS::Client aims to simplify usage of OBS (https://openbuildservice.org) API calls in perl.

AUTHOR

Frank Schreiner, <frank at samaxi.de>

SEE ALSO

Net::OBS::Client::Package, Net::OBS::Client::Project, Net::OBS::Client::BuildResults

You can find some examples in the "" in contrib directory

COPYRIGHT

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.