Group
Extension

Matches 35359

Net-HTTP-Spore-Middleware-Format-Text ( G/GE/GEMPESAW/Net-HTTP-Spore-Middleware-Format-Text-0.01.tar.gz, GEMPESAW, 2015; MetaCPAN )
Net-HTTP-Spore-Middleware-Format-Text/lib/Net/HTTP/Spore/Middleware/Format/Text.pm ( view source; MetaCPAN )
VERSION

version 0.01

=head1 SYNOPSIS

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

=head1 DESCRIPTION

Net::HTTP::Spore::Middleware::Format
Brocade-BSC ( P/PR/PRUIKLW/Brocade-BSC-v1.0.4.tar.gz, PRUIKLW, 2015; MetaCPAN )
Brocade-BSC/lib/Brocade/BSC/Node/NC/Vrouter/VR5600.pm ( view source; MetaCPAN )
_payload:
# Parameters: none
# Returns   : self as JSON formatted for BSC REST call
#
sub get_payload {
    my $self = shift;

    my $json = new JSON->canonical->allow_blessed->convert_blessed;
    m
y $payload = '{"vyatta-interfaces-dataplane:dataplane":'
        . $json->encode($self)
        . '}';
    $payload =~ s/firewall/vyatta-security-firewall:firewall/g;
    $payload =~ s/inlist/in/g;
  
ode::NC);
use HTTP::Status qw(:constants :is status_message);
use URI::Escape qw(uri_escape);
use JSON -convert_blessed_universally;
use Brocade::BSC;
use Brocade::BSC::Status qw(:constants);

=head1 
Lim ( J/JE/JELU/Lim-0.20.tar.gz, JELU, 2015; MetaCPAN )
Lim/lib/Lim.pm ( view source; MetaCPAN )
ense;
use Carp;

use YAML::Any ();

=encoding utf8

=head1 NAME

Lim - Framework for RESTful JSON/XML, JSON-RPC, XML-RPC and SOAP

=head1 VERSION

Version 0.20

=cut

our $VERSION = '0.20';
our $CONFI
  verify_require_client_cert => 1,
            ca_path => '/etc/lim/ssl/certs'
        },
        json => {
            pretty => 0
        }
    },
    agent => {
        config_file => '',
        u
 over multiple protocols.

It uses AnyEvent for async operations and SOAP::Lite, XMLRPC::Lite and JSON::XS
for processing protocol messages.

There are 3 parts in Lim that can work independenly, a Ser
Brocade-BSC ( P/PR/PRUIKLW/Brocade-BSC-v1.0.4.tar.gz, PRUIKLW, 2015; MetaCPAN )
Brocade-BSC/lib/Brocade/BSC/Node/NC/Vrouter/Firewall.pm ( view source; MetaCPAN )
strict;
use warnings;

use Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(Firewall);

use JSON -convert_blessed_universally;

#-----------------------------------------------------------------
====
#
=item B<as_json>

  # Returns   : pretty-printed JSON string representing Firewall object.

=cut ===================================================================
sub as_json {
    my $self =
 shift;

    my $json = new JSON->canonical->allow_blessed->convert_blessed;
    return $json->pretty->encode($self);
}

# Method ===============================================================
#
# Pa
Search-OpenSearch-Server ( K/KA/KARMAN/Search-OpenSearch-Server-0.301.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch-Server/lib/Search/OpenSearch/Server.pm ( view source; MetaCPAN )

use Carp;
use Search::OpenSearch;
use Search::OpenSearch::Result;
use Data::Dump qw( dump );
use JSON;
use Time::HiRes qw( time );
use Scalar::Util qw( blessed );
use Try::Tiny;

our $VERSION = '0.30
},
    );
}

# no-op for back-compat
sub setup_engine { }

my %formats = (
    'XML'   => 1,
    'JSON'  => 1,
    'ExtJS' => 1,
    'Tiny'  => 1,
);

sub log {
    my $self = shift;
    warn(@_);
}

 ||= $params->{format} || 'JSON';
        if ( !exists $formats{ $args{t} } ) {
            $self->log("bad format $args{t} -- using JSON");
            $args{format} = 'JSON';
        }

        if (
App-screenorama ( J/JH/JHTHORSEN/App-screenorama-0.06.tar.gz, JHTHORSEN, 2015; MetaCPAN )
App-screenorama/README.pod ( view source; MetaCPAN )
="screenshot">

=end html

=head2 Protocol

The data transmitted over the websocket connection is JSON in each frame:

=over 4

=item * Startup

  {"program":$str,"program_args":...}

Same as L</progr
Search-OpenSearch-Server ( K/KA/KARMAN/Search-OpenSearch-Server-0.301.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch-Server/lib/Search/OpenSearch/Server/Plack.pm ( view source; MetaCPAN )
h::OpenSearch;
use Search::OpenSearch::Result;
use Plack::Request;
use Data::Dump qw( dump );
use JSON;
use Scalar::Util qw( weaken );
use Time::HiRes qw( time );

our $VERSION = '0.301';

sub log {
 
Business-OnlinePayment-BitPay-Client ( B/BI/BITPAY/Business-OnlinePayment-BitPay-Client-2.3.1.tar.gz, BITPAY, 2015; MetaCPAN )
Business-OnlinePayment-BitPay-Client/lib/Business/OnlinePayment/BitPay/Client.pm ( view source; MetaCPAN )
quest;
use LWP::Protocol::https;
use Business::OnlinePayment::BitPay::KeyUtils;
use JSON;
use JSON::Parse 'parse_json';
require IO::Socket::SSL;
use Net::SSLeay;
use Data::Dumper;

sub new {
    my $c
$token;
    $response = post($self, path => "invoices", params => $content);
    my $data = parse_json($response->content)->{'data'};
    return %{$data};
}

sub get_invoice{
    my $self = shift;
   
{'public'};
    my $response = get($self, path => $path, public => $public);
    my $data = parse_json($response->content)->{'data'};
    return %{$data};
}

sub get{
    my $self = shift;
    my %opt
WWW-SuperMan ( M/MC/MCCHEUNG/WWW-SuperMan-0.01.tar.gz, MCCHEUNG, 2015; MetaCPAN )
WWW-SuperMan/lib/WWW/SuperMan.pm ( view source; MetaCPAN )
package WWW::SuperMan;
use Slurp;
use JSON;
use LWP::UserAgent;

our $VERSION = 0.01;

sub new {
  my($class, %cnf) = @_;
  my $self = bless {
    user => $cnf{ user },
    pass => $cnf{ pass },
    u
},
      password => $self->{ pass }
    }
  );

  return {} unless $res->is_success;
  return _deJson( $res );
}

sub getCode {
  my ( $self, $img_file ) = @_;
  my $url = 'http://api2.sz789.net:88/R
uccess;

  return _deJson( $res );
}


sub _deJson {
  my $res = shift;
  my $json = $res->content;
  eval {
    $json = from_json( $json );
  };

  return {} if $@;
  return $json;
}

1;

__END__
=he
Search-OpenSearch-Server ( K/KA/KARMAN/Search-OpenSearch-Server-0.301.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch-Server/lib/Search/OpenSearch/Result.pm ( view source; MetaCPAN )
package Search::OpenSearch::Result;
use Moose;
use JSON;
use overload
    '""'     => sub { $_[0]->stringify; },
    'bool'   => sub {1},
    fallback => 1;

use namespace::autoclean;

our $VERSION = 
 {
    my $self = shift;

    #Data::Dump::dump($self);
    my $json = encode_json( {%$self} );

    #warn "json=$json";
    return $json;
}

1;

__END__

=head1 NAME

Search::OpenSearch::Result - RES
item doc

=item success

=item msg

=item total

=back

=head2 stringify

Returns the object as a JSON-encoded string.

=head1 AUTHOR

Peter Karman, C<< <karman at cpan.org> >>

=head1 BUGS

Please re
Puzzle ( E/EB/EBRUNI/Puzzle-0.21.tar.gz, EBRUNI, 2015; MetaCPAN )
Puzzle/lib/Puzzle/Template.pm ( view source; MetaCPAN )
->all_mason_args} ,%$args};
	return $self->html($as,$file);
}

use Switch;

use Data::Dumper;
use JSON::Any;
use XML::Simple;
use Text::CSV::Slurp;

sub printct {
		print $_[0]->sprintct($_[1], $_[2])

		# coerentemente con il tipo di content-type di uscita
		# supportato per ora, text, html, xml, json
		#

		my $ct = shift || $self->container->_mason->apache_req->content_type;

		my $pl2html = sub
		my $pl2text = sub { return Data::Dumper::Dumper($_[0]) };
		my $pl2json = sub { my $obj =  JSON::Any->new; return $obj->objToJson($_[0]) };
		my $pl2xml 	= sub { return XMLout($_[0]) };
		my $pl2csv
WebService-ChatWorkApi ( K/KU/KUNIYOSHI/WebService-ChatWorkApi-0.01.tar.gz, KUNIYOSHI, 2015; MetaCPAN )
WebService-ChatWorkApi/lib/WebService/ChatWorkApi/UserAgent.pm ( view source; MetaCPAN )
 "LWP::UserAgent";
use Carp ( );
use Readonly;
use String::CamelCase qw( camelize );
use URI;
use JSON;
use Mouse;
use Smart::Args;
use Class::Load qw( try_load_class );
use WebService::ChatWorkApi::R
GENT               => sprintf "%s/%s", __PACKAGE__, $VERSION;
Readonly my $CODEC               => JSON->new;
Readonly my $BASE_URL            => "https://api.chatwork.com/v1/";
Readonly my $BASE_RESPO
StreamRoot-Manifest ( L/LU/LUCAS/StreamRoot-Manifest-0.03.tar.gz, LUCAS, 2015; MetaCPAN )
StreamRoot-Manifest/lib/StreamRoot/Manifest.pm ( view source; MetaCPAN )
package StreamRoot::Manifest;

use strict;
use warnings;
use WWW::Curl::Easy;
use JSON;

our $VERSION = '0.03';

sub new {
    my $class = shift;
    my $self = {};
    $self->{token} = shift||undef;
^2/) {
            decode_json($content) if $content !~ /^$/;
        }else{
            if ($self->{curl}->getinfo(CURLINFO_HTTP_CODE) =~ /^4/) {
                decode_json($content) if $content !~ 
App-screenorama ( J/JH/JHTHORSEN/App-screenorama-0.06.tar.gz, JHTHORSEN, 2015; MetaCPAN )
App-screenorama/lib/App/screenorama.pm ( view source; MetaCPAN )
="screenshot">

=end html

=head2 Protocol

The data transmitted over the websocket connection is JSON in each frame:

=over 4

=item * Startup

  {"program":$str,"program_args":...}

Same as L</progr
Crypt-HSXKPasswd ( B/BA/BARTB/Crypt-HSXKPasswd-v3.6.tar.gz, BARTB, 2015; MetaCPAN )
Crypt-HSXKPasswd/lib/Crypt/HSXKPasswd.pm ( view source; MetaCPAN )
ed data structures - exports clone()
use Readonly; # for truly constant constants
use JSON; # for dealing with JSON strings
use List::MoreUtils qw( uniq ); # for array deduplication
use Type::Tiny; # 
in use.
#              config - a config hashref.
#              config_json - a config as a JSON string (requires that the JSON
#                  module be installed)
#              rng - an object 
on is called in an invalid way, called with
#              invalid args, or called with a JSON string when JSON is not
#              installed.
# Notes      : The order of preference for word sources
WebService-ChatWorkApi ( K/KU/KUNIYOSHI/WebService-ChatWorkApi-0.01.tar.gz, KUNIYOSHI, 2015; MetaCPAN )
WebService-ChatWorkApi/lib/WebService/ChatWorkApi/Response.pm ( view source; MetaCPAN )
rnings;
package WebService::ChatWorkApi::Response;
use parent "HTTP::Response";
use Carp ( );
use JSON;
use HTTP::Status qw( HTTP_NO_CONTENT );

sub _gen_accessor {
    my $class = shift;
    my $key 
hift;
    no strict "refs";
    *{ "$class\::$key" } = sub { shift->get( $key ) };
}

sub codec { JSON->new }

sub limit { shift->header( "X-RateLimit-Limit" ) }

sub remaining { shift->header( "X-Rat
ontent;

=head1 DESCRIPTION

This module provides a few methods to represent ChatWork REST API spec.

Two most things are:

1. response is a JSON
2. 204 No Content at response list is empty (Not []).
App-EventStreamr ( T/TE/TECHMAN/App-EventStreamr-0.5.tar.gz, TECHMAN, 2015; MetaCPAN )
App-EventStreamr/bin/eventstreamr-devmon.pl ( view source; MetaCPAN )
b "$Bin/../lib";
use File::Tail; # libfile-tail-perl
use HTTP::Tiny; # libhttp-tiny-perl
use JSON; # libjson-perl

# PODNAME: station-devmon

# ABSTRACT: station-devmon - Monitor Syslog for device eve
d";
      my $json = to_json($device);
      my %post_data = (
            content => $json,
            'content-type' => 'application/json',
            'content-length' => length($json),
      );

App-EventStreamr ( T/TE/TECHMAN/App-EventStreamr-0.5.tar.gz, TECHMAN, 2015; MetaCPAN )
App-EventStreamr/bin/eventstreamr-api.pl ( view source; MetaCPAN )
ERSION


my $files = File::ShareDir::Tarball::dist_dir( 'App-EventStreamr' );

set serializer => 'JSON';

# logging
set logpath => "$ENV{HOME}/.eventstreamr"; # need collect this somehow..
set logger 
 matches
post '/settings/:mac' => sub {
  my $data->{mac} = params->{mac};
  $data->{body} = from_json(request->body);
  if ($data->{mac} eq "$self->{config}{macaddress}") {
    my $manager = $self->{
-------------
# Post JSON content to restart an individual device eg: {"id":"dvswitch"}
post '/command/:command' => sub {
  my $command = params->{command};
  my $data = from_json(request->body);
  in
Marathon ( G/GE/GEIDIES/Marathon-0.9.tar.gz, GEIDIES, 2015; MetaCPAN )
Marathon/lib/Marathon.pm ( view source; MetaCPAN )
package Marathon;

use 5.006;
use strict;
use warnings;
use LWP::UserAgent;
use JSON::XS;
use Marathon::App;
use Marathon::Group;
use Marathon::Events;
use Marathon::Deployment;

=head1 NAME

Marathon
tp://mesosphere.github.io/marathon/docs/rest-api.html), so it can be used without having to write JSON by hand.

For the most common tasks, there is a helper method in the main module. Some additional
( $status ) {
        $status = '?status='.$status;
    }
    my $task_obj = $self->_get_obj_from_json('/v2/tasks'.$status);
    my $task_arrayref = ( defined $task_obj && exists $task_obj->{tasks} &&
Marathon ( G/GE/GEIDIES/Marathon-0.9.tar.gz, GEIDIES, 2015; MetaCPAN )
Marathon/lib/Marathon/Group.pm ( view source; MetaCPAN )
package Marathon::Group;

use strict;
use warnings;
use parent 'Marathon::Remote';
use JSON::XS;

sub new {
    my ($class, $conf, $parent) = @_;
    my $self = bless {};
    $conf = {} unless $conf &
/v2/groups', $self->get_updateable_values);
    if ( $response ) {
        $self->version( decode_json($response)->{version} );
        return $self;
    } 
    return undef;
}

sub update {
    my ($
f->id . $self->_uri_args($args), $payload);
    if ( $response ) {
        $self->version( decode_json($response)->{version} );
        return $self;
    } 
    return undef;
}

sub delete {
    my ($

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