PrePAN

Sign in to PrePAN

Net::OBS::Client simple OBS API calls

Good

Synopsis

      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 = $p->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 = $p->fetch_status();

Description

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

Comments

Please sign up to post a review.