Group
Extension

Matches 1

API-INSEE-Sirene ( C/CP/CPANLNCSA/API-INSEE-Sirene-4.04.tar.gz, CPANLNCSA, 2021; MetaCPAN )
API-INSEE-Sirene/lib/API/INSEE/Sirene.pm ( view source; MetaCPAN )
package API::INSEE::Sirene;

use strict;
use warnings;

use Carp 'croak';
use JSON;
use HTTP::Request::Common qw/ GET POST /;
use HTTP::Status ':constants';
use List::Util 'any';
use LWP::UserAgent;
u
PI::INSEE::Sirene V$VERSION");
    $self->{'user_agent'}->default_header('Accept' => 'application/json');
}

sub _getToken {
    my $self = shift;

    croak 'Please provide your credentials.' if !def
self->{'user_agent'}->request($request);
    my $json_obj;

    if ($response->content_type =~ m/^application\/json/) {
        $json_obj = decode_json($response->content);
    }
    else {
        re

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