Group
Extension

Matches 35359

Net-HTTP-Spore ( F/FR/FRANCKC/Net-HTTP-Spore-0.05.tar.gz, FRANCKC, 2012; MetaCPAN )
Net-HTTP-Spore/lib/Net/HTTP/Spore.pm ( view source; MetaCPAN )

  $Net::HTTP::Spore::VERSION = '0.05';
}

# ABSTRACT: SPORE client

use Moose;

use IO::All;
use JSON;
use Carp;
use Try::Tiny;
use Scalar::Util;

use Net::HTTP::Spore::Core;

# XXX should we let the
bject ) = @_;

    my $spec;
    try {
        $spec = JSON::decode_json($string);
    }
    catch {
        Carp::confess( "unable to parse JSON spec: " . $_ );
    };

    try {
        $opts->{base
m_spec('twitter.json');

    # for identica
    my $client = Net::HTTP::Spore->new_from_spec('twitter.json', base_url => 'http://identi.ca/com/api');

    $client->enable('Format::JSON');

    my $tim
App-Toodledo ( P/PJ/PJS/App-Toodledo-2.16.tar.gz, PJS, 2012; MetaCPAN )
App-Toodledo/lib/App/Toodledo.pm ( view source; MetaCPAN )
Digest::MD5 'md5_hex';
use Moose;
use MooseX::Method::Signatures;
use MooseX::ClassAttribute;
use JSON;
use URI::Encode qw(uri_encode);
use LWP::UserAgent;
use Date::Parse;
use YAML qw(LoadFile DumpFi
$res->code != 200
    and $self->log->logdie( "Unable to contact Toodledo\n");
  my $ref = decode_json( $res->content )
    or $self->log->logdie( "Content invalid\n");

  $self->log->logdie( $ref->{e
App-Toodledo ( P/PJ/PJS/App-Toodledo-2.16.tar.gz, PJS, 2012; MetaCPAN )
App-Toodledo/lib/App/Toodledo/Util.pm ( view source; MetaCPAN )
trict;
use warnings;

our $VERSION = '1.00';

use base qw(Exporter);

use File::HomeDir qw();
use JSON;

our @EXPORT_OK = qw(debug toodledo_encode toodledo_decode toodledo_time
		     arg_encode home 
PP_TOODLEDO_DEBUG};
}


sub arg_encode
{
  local $_ = shift;

  s/\n/\\n/g;
  ref $_
    ? encode_json( $_ )
    : $_;
}


sub toodledo_encode
{
  local $_ = shift;

  s/&/%26/g;
  s/;/%3B/g;
  $_;
}
1;

__END__

=head1 NAME

=head1 SYNOPSIS

=head1 DESCRIPTION

=head1 METHODS

=head2 arg_encode

JSON encoding for parameters submitted to the API.

=head2 home

User's home directory.  Broken out so
WoW-Armory-API ( S/SI/SILENCER/WoW-Armory-API-1.031.tar.gz, SILENCER, 2012; MetaCPAN )
WoW-Armory-API/lib/WoW/Armory/API.pm ( view source; MetaCPAN )
  WOW_ARENA_TEAM_2 WOW_ARENA_TEAM_3 WOW_ARENA_TEAM_5
);

use URI::Escape;
use LWP::UserAgent;
use JSON::XS;

use constant WOW_REGIONS =>
{
    us  => { api_host => 'us.battle.net'       , locales => [
 = $self->{ua}->get($url);

    #return undef if !$res->is_success;

    my $data = eval { decode_json $res->decoded_content };

    return $@ ? undef : $data;
}

__PACKAGE__->_init_package;

1;

=hea
Net-Google-Storage ( C/CE/CEBJYRE/Net-Google-Storage-0.1.2.tar.gz, CEBJYRE, 2012; MetaCPAN )
Net-Google-Storage/lib/Net/Google/Storage/Object.pm ( view source; MetaCPAN )
}

# ABSTRACT: Interface for a Google Storage Object
# https://developers.google.com/storage/docs/json_api/v1/objects#resource

use Moose;

use Net::Google::Storage::Types;


has id => (
	is => 'ro',
toring the data of an object, slightly cut down from
L<https://developers.google.com/storage/docs/json_api/v1/objects#resource>.

Generally Net::Google::Storage::Object objects are acquired from a
C<g
formation about the file itself - check out the
L<docs|https://developers.google.com/storage/docs/json_api/v1/objects#resource>.

=head2 contentEncoding

The content encoding of the object's data.

=h
WebService-Solr ( B/BR/BRICAS/WebService-Solr-0.21.tar.gz, BRICAS, 2012; MetaCPAN )
WebService-Solr/lib/WebService/Solr.pm ( view source; MetaCPAN )
      => 'ro',
    isa        => 'HashRef',
    auto_deref => 1,
    default    => sub { { wt => 'json' } }
);

has 'last_response' => (
    is  => 'rw',
    isa => 'Maybe[WebService::Solr::Response]'
 {
        $options->{ default_params }
            = { %{ $options->{ default_params } }, wt => 'json', };
    }

    return $options;
}

sub add {
    my ( $self, $doc, $params ) = @_;
    my @docs 
Net-HTTP-Spore ( F/FR/FRANCKC/Net-HTTP-Spore-0.05.tar.gz, FRANCKC, 2012; MetaCPAN )
Net-HTTP-Spore/lib/Net/HTTP/Spore/Middleware/DoNotTrack.pm ( view source; MetaCPAN )
VERSION

version 0.05

=head1 SYNOPSIS

    my $client = Net::HTTP::Spore->new_from_spec('twitter.json');
    $client->enable('DoNotTrack');

=head1 DESCRIPTION

Add a header B<x-do-not-track> to your
Net-HTTP-Spore ( F/FR/FRANCKC/Net-HTTP-Spore-0.05.tar.gz, FRANCKC, 2012; MetaCPAN )
Net-HTTP-Spore/lib/Net/HTTP/Spore/Middleware/Format.pm ( view source; MetaCPAN )
ore->new_from_spec('twitter.json');
    $client->enable('Format::JSON');

    my $res = $client->public_timeline();
    # $res->body contains an hashref build from the JSON returned by the API

=head1
he appropriate format (eg: if payload contains an hashref, and the format is json, the hashref B<MUST> be serialized to JSON).

=head1 METHODS

=over 4

=item serializer_key

name of the extension ser
Dist-Maker ( G/GF/GFUJI/Dist-Maker-0.06.tar.gz, GFUJI, 2012; MetaCPAN )
Dist-Maker/lib/Dist/Maker/Template/DefaultMB.pm ( view source; MetaCPAN )

hotspots
immutabilize
immutabilizes
immutabilized
inline
inlines
invocant
invocant's
irc
IRC
isa
JSON
login
namespace
namespaced
namespaces
namespacing
OO
OOP
ORM
overridable
parameterizable
paramete
Net-Google-Storage ( C/CE/CEBJYRE/Net-Google-Storage-0.1.2.tar.gz, CEBJYRE, 2012; MetaCPAN )
Net-Google-Storage/lib/Net/Google/Storage/Agent.pm ( view source; MetaCPAN )
CT: Access the Google Storage JSON API (currently experimental).
# https://developers.google.com/storage/docs/json_api/

use Moose::Role;
use LWP::UserAgent 6.04;
use JSON;
use URI::Escape 3.29;


has
});
	
	die 'Failed to refresh the access token' unless $res->is_success;
	
	my $response = decode_json($res->decoded_content);
	$self->access_token($response->{access_token});
	$self->access_token_exp
>post(@_);
	return $res;
}

sub _json_post
{
	my $self = shift;
	
	my $args = pop;
	return $self->_post(@_, 'Content-Type' => 'application/json', Content => encode_json($args));
}

sub _delete
{
	my $
Net-HTTP-Spore ( F/FR/FRANCKC/Net-HTTP-Spore-0.05.tar.gz, FRANCKC, 2012; MetaCPAN )
Net-HTTP-Spore/lib/Net/HTTP/Spore/Middleware/UserAgent.pm ( view source; MetaCPAN )
VERSION

version 0.05

=head1 SYNOPSIS

    my $client = Net::HTTP::Spore->new_from_spec('twitter.json');
    $client->enable('UserAgent', useragent => 'Mozilla/5.0 (X11; Linux x86_64; rv:2.0b4) Gecko
AnyEvent-HTTP-ScopedClient ( A/AA/AANOAA/AnyEvent-HTTP-ScopedClient-0.0.3.tar.gz, AANOAA, 2012; MetaCPAN )
AnyEvent-HTTP-ScopedClient/lib/AnyEvent/HTTP/ScopedClient.pm ( view source; MetaCPAN )

    );

    # Content-Type: application/json
    use JSON::XS;
    $client->header('Content-Type', 'application/json')
        ->post(
            encode_json({ foo => 1 }),
            sub {
       
 = @_;
                # ...
            }
        );

    $client->header('Accept', 'application/json')
        ->query({ key => 'value' })
        ->query('key', 'value')
        ->get(
            
WebService-Solr ( B/BR/BRICAS/WebService-Solr-0.21.tar.gz, BRICAS, 2012; MetaCPAN )
WebService-Solr/lib/WebService/Solr/Response.pm ( view source; MetaCPAN )
esponse;

use Any::Moose;

use WebService::Solr::Document;
use Data::Page;
use Data::Pageset;
use JSON::XS ();

has 'raw_response' => (
    is      => 'ro',
    isa     => 'Object',
    handles => {
 
>raw_response->content;
    return {} unless $content;
    my $rv = eval { JSON::XS::decode_json( $content ) };

    ### JSON::XS throw an exception, but kills most of the content
    ### in the diagn
m * raw_response - the raw L<HTTP::Response> object.

=item * content - a hashref of deserialized JSON data from the response.

=item * docs - an array of L<WebService::Solr::Document> objects.

=item
Net-HTTP-Spore ( F/FR/FRANCKC/Net-HTTP-Spore-0.05.tar.gz, FRANCKC, 2012; MetaCPAN )
Net-HTTP-Spore/lib/Net/HTTP/Spore/Response.pm ( view source; MetaCPAN )
;

    my $response = Net::HTTP::Spore::Response->new(
        200, ['Content-Type', 'application/json'], '{"foo":1}';
    );
    $response->request($request);

=head1 DESCRIPTION

Net::HTTP::Spore::R
hen the body is sets for the first time.

=item content_type

    $res->content_type('application/json');
    my $ct = $res->content_type;

Gets or sets the content type of the response body

=item co
ype' => 'application/json']);

Gets or sets HTTP response headers.

=item header

    my $cl = $res->header('Content-Length');
    $res->header('Content-Type' => 'application/json');

Shortcut for C<<
Net-Google-Storage ( C/CE/CEBJYRE/Net-Google-Storage-0.1.2.tar.gz, CEBJYRE, 2012; MetaCPAN )
Net-Google-Storage/lib/Net/Google/Storage/Bucket.pm ( view source; MetaCPAN )
}

# ABSTRACT: Interface for a Google Storage Bucket
# https://developers.google.com/storage/docs/json_api/v1/buckets#resource

use Moose;

use Net::Google::Storage::Types;


has id => (
	is => 'ro',
storing the data of a bucket, slightly cut down from
L<https://developers.google.com/storage/docs/json_api/v1/buckets#resource>.

Generally Net::Google::Storage::Bucket objects are acquired from a
C<g
f of the owner details for the bucket - see
L<the docs|https://developers.google.com/storage/docs/json_api/v1/buckets#resource>.

=head2 location

Physical location of the servers containing this buck
Net-DiffBot ( B/BS/BSM/Net-DiffBot-0.02.tar.gz, BSM, 2012; MetaCPAN )
Net-DiffBot/lib/Net/DiffBot.pm ( view source; MetaCPAN )
package Net::DiffBot;

use 5.006;
use strict;
use warnings;
use LWP::UserAgent;
use JSON::XS;
use URI::Escape qw(uri_escape);
use HTTP::Request;

my $endpoint_url = 'http://www.diffbot.com/api/article
  my $data;
        eval {
            $data = decode_json($response->content);
        };
        if ($@) {
            warn "ERROR decoding JSON response";
            return undef;
        }
      
  my $data;
        eval {
            $data = decode_json($response->content);
        };
        if ($@) {
            warn "ERROR decoding JSON response";
            return undef;
        }
      
Net-HTTP-Spore ( F/FR/FRANCKC/Net-HTTP-Spore-0.05.tar.gz, FRANCKC, 2012; MetaCPAN )
Net-HTTP-Spore/lib/Net/HTTP/Spore/Middleware/Auth/Header.pm ( view source; MetaCPAN )
ad1 VERSION

version 0.05

=head1 SYNOPSIS

    my $client = Net::HTTP::Spore->new_from_spec('api.json');
    $client->enable(
        'Auth::Header',
        header_name  => 'X-API-Auth',
        hea
AnyEvent-APNS ( T/TY/TYPESTER/AnyEvent-APNS-0.10.tar.gz, TYPESTER, 2012; MetaCPAN )
AnyEvent-APNS/lib/AnyEvent/APNS.pm ( view source; MetaCPAN )
t::TLS;

require bytes;
use Carp qw(croak);
use Encode;
use Scalar::Util 'looks_like_number';
use JSON::Any;

our $VERSION = '0.10';

has certificate => (
    is       => 'rw',
    isa      => 'Str | 

    clearer   => 'clear_handler',
);

has json_driver => (
    is      => 'rw',
    isa     => 'Object',
    lazy    => 1,
    default => sub {
        JSON::Any->new( utf8 => 1 );
    },
);

has on_


sub send {
    my $self = shift;
    my ($token, $payload, $expiry) = @_;

    my $json = encode_utf8( $self->json_driver->encode($payload) );

    # http://developer.apple.com/library/ios/#DOCUMENT
XDI ( H/HO/HORST/XDI-0.05.tar.gz, HORST, 2012; MetaCPAN )
XDI/lib/XDI/Connection.pm ( view source; MetaCPAN )
TP::Request->new( 'POST', $server);
	my $ua = new LWP::UserAgent;
	my $cheader = 'application/xdi+json';
	if ($context) {
		$cheader .= ';contexts=1';
	}
	$request->header('accept' => $cheader);
	$req
", $response->status_line;
		return undef;
	}
		
}

sub _xdi_response {
	my ($json) = @_;
	my $struct = XDI::_decode($json);
	if (defined $struct) {
		my $tuple = XDI::pick_xdi_tuple($struct,['$false$
 is a JSON encoded representation of the nodes requested in the $get operation.  Other
operations will return an empty hash {} upon success.  Default behavior is to automatically convert
the JSON to a
Log-Handler ( B/BL/BLOONIX/Log-Handler-0.76.tar.gz, BLOONIX, 2012; MetaCPAN )
Log-Handler/lib/Log/Handler/Output/Socket.pm ( view source; MetaCPAN )
  dumper => sub { Convert::Bencode_XS::bencode($_[0]) }

    # or maybe

    use JSON::PC;

        dumper => sub { JSON::PC::convert($_[0]) }

=item B<connect>

This option is only useful if you want

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