Group
Extension

Matches 2

Net-Zemanta ( A/AV/AVIAN/Net-Zemanta-0.7.tar.gz, AVIAN, 2014; MetaCPAN )
Net-Zemanta/lib/Net/Zemanta/Suggest.pm ( view source; MetaCPAN )
t. Suggestions are returned as a tree
of hash and list references that correspond to the returned JSON data
structure. The most important parameters and result elements are described bellow.
For the f
Net-Zemanta ( A/AV/AVIAN/Net-Zemanta-0.7.tar.gz, AVIAN, 2014; MetaCPAN )
Net-Zemanta/lib/Net/Zemanta/Method.pm ( view source; MetaCPAN )
ethod;

use warnings;
use strict;

use LWP::UserAgent;
use HTTP::Request::Common;
use Encode;
use JSON;

our $VERSION = '0.7';

my $SERVICE_TYPE = "rest";
my $API_VERSION = "0.0";

my $UA_SUFFIX = "Pe
shift;
	my %params = @_;

	my %merged_params = ( 	'method'  => $self->{METHOD},
				'format'  => 'json',
				'api_key' => $self->{APIKEY},
				%params );

	my $response = $self->{ua}->request(POST $se
->is_success) {
		$self->{error} = $response->status_line;
		return undef;
	}

	my $result = from_json($response->content);

	if ($result->{status} ne 'ok') {
		$self->{error} = "method returned " . $

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