package WWW::Socrata;
use strict;
use warnings;
use WWW::Curl::Easy;
use JSON;
use URI::Escape;
use Carp;
our $VERSION = '0.02';
sub new {
my $class = shift;
my $rh_params = shift;
my $self = {}
path;
#define default headers to send
my @headers = (
'Accept: application/json',
'Content-type: application/json',
"X-App-Token: " . $self->{app_token},
);
#define parameters
my $qstring
i++){
shift @response;
}
$response_body = join("\n", @response);
$obj_response = decode_json($response_body);
return $obj_response;
} else {
croak "An error happened: " . $curl->strerro