Group
Extension

Matches 1

OpenSourceOrg-API ( P/PA/PABLROD/OpenSourceOrg-API-0.001.tar.gz, PABLROD, 2017; MetaCPAN )
OpenSourceOrg-API/lib/OpenSourceOrg/API.pm ( view source; MetaCPAN )
STRACT: Perl API Bindings to the OSI License API

use Moo;
use REST::Client;
use Const::Fast;
use JSON;
use Carp;

const my $base_url => 'https://api.opensource.org';

has _api_client => ( is => 'lazy
();
    my $response = shift();
    if ( $response->responseCode() == 200 ) {
        return from_json( $response->responseContent );
    } else {
        croak 'Error: ' . $response->responseCode() .
THODS

=head2 all

Get a list of all known licenses. 

The response is the perl equivalent of the json returned by the api,
documented in L<https://github.com/OpenSourceOrg/api/blob/master/doc/endpoin

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.