Group
Extension

Matches 35359

HTML-InfoVis ( A/AD/ADAMK/HTML-InfoVis-0.03.tar.gz, ADAMK, 2012; MetaCPAN )
HTML-InfoVis/lib/HTML/InfoVis/Graph.pm ( view source; MetaCPAN )
rate a JSON structure suitable for loadJSON classes

=head1 SYNOPSIS

  use HTML::InfoVis;
  
  my $graph = HTML::InfoVis::Graph->new;
  $graph->add_edge( 'foo' => 'bar' );
  
  print "var json = " . 
$graph->as_json . "\n";

=head1 DESCRIPTION

HTML::InfoVis::Graph is used to generate a JSON structure suitable for loading
by any InfoVis Javascript object that has the C<loadJSON> method.

This is a
raph, and a single method
for generating an anonymous JSON structure representing the graph.

=head1 METHODS

=cut

use 5.006;
use strict;
use JSON  2.16 ();
use Graph 0.85 ();

our $VERSION = '0.03';
InterMine-Model ( I/IN/INTERMINE/InterMine-Model-0.9901.tar.gz, INTERMINE, 2012; MetaCPAN )
InterMine-Model/lib/InterMine/Model/ClassDescriptor.pm ( view source; MetaCPAN )
 BETTER COERCION 
        # SOLUTION CAN BE FOUND!!!!
        if (blessed $value and $value->isa('JSON::Boolean')) {
            $args->{$key} = $$value;
        }
    }
    return $self->$orig($args)
HTML-InfoVis ( A/AD/ADAMK/HTML-InfoVis-0.03.tar.gz, ADAMK, 2012; MetaCPAN )
HTML-InfoVis/lib/HTML/InfoVis.pm ( view source; MetaCPAN )
e only available class is
L<HTML::InfoVis::Graph>, which assists in generation InfoVis-compatible
JSON graph dumps.

=cut

use 5.006;
use strict;
use HTML::InfoVis::Graph ();

our $VERSION = '0.03';

Geo-Distance-Google ( L/LC/LCARMICH/Geo-Distance-Google-0.01.tar.gz, LCARMICH, 2012; MetaCPAN )
Geo-Distance-Google/lib/Geo/Distance/Google.pm ( view source; MetaCPAN )
;
use warnings;

our $VERSION = '0.01';

use Carp;
use Data::Dumper qw( Dumper );
use Encode;
use JSON;
use HTTP::Request;
use LWP::UserAgent;
use Params::Validate;
use URI;

sub new {
    my($class, 
de_utf8( $destinations ) : $destinations;

    my $url = sprintf "%s://%s/maps/api/distancematrix/json",
        ( $self->{https} ? 'https' : 'http' ), $self->{host};

    my $uri = URI->new($url);

 
type !~ /json/ ) {
        my $ct = $res->headers->content_type;
        croak "Invalid content-type '$ct' returned from webserver";
    }

    my $json = JSON->new->utf8;
    my $data = $json->decode
Data-SearchEngine ( A/AN/ANELSON/Data-SearchEngine-0.33.tar.gz, ANELSON, 2012; MetaCPAN )
Data-SearchEngine/lib/Data/SearchEngine/Results.pm ( view source; MetaCPAN )
You
may serialize it thusly:

  my $json = $results->freeze({ format => 'JSON' });
  # ...
  my $results = Data::SearchEngine::Results->thaw($json, { format => 'JSON' });

=head1 ATTRIBUTES

=head2 el
VendorAPI-2Checkout-Client ( L/LE/LENJAFFE/VendorAPI-2Checkout-Client-0.1502.tar.gz, LENJAFFE, 2012; MetaCPAN )
VendorAPI-2Checkout-Client/lib/VendorAPI/2Checkout/Client/NoMoose.pm ( view source; MetaCPAN )
 and detail_coupon(), list_payments(),
list_options(), list_products().

Return data is in XML or JSON.

Please refer to L<2Checkout's Back Office Admin API Documentation|http://www.2checkout.com/docu
me && $password) {
      return undef;
   }

   unless ( defined $accept && $accept =~ qr/^(?:XML|JSON)$/) {
      $accept = 'XML';
   }

   my $self = bless {}, $class;
   my $ua = LWP::UserAgent->ne
VendorAPI-2Checkout-Client ( L/LE/LENJAFFE/VendorAPI-2Checkout-Client-0.1502.tar.gz, LENJAFFE, 2012; MetaCPAN )
VendorAPI-2Checkout-Client/lib/VendorAPI/2Checkout/Client.pm ( view source; MetaCPAN )
mat = shift;
  my %mime_types = ( XML => 'application/xml', JSON => 'application/json', );
  return $mime_types{$format} || $mime_types{JSON};
}

=head1 SYNOPSIS

    use VendorAPI::2Checkout::Client;
 and detail_coupon(), list_payments(),
list_options(), list_products().

Return data is in XML or JSON.

Please refer to L<2Checkout's Back Office Admin API Documentation|http://www.2checkout.com/docu
me && $password) {
      return undef;
   }

   unless ( defined $format && $format =~ qr/^(?:XML|JSON)$/) {
      return undef;
   }

   $class = 'VendorAPI::2Checkout::Client::';
   if (defined $use
Web-App ( A/AP/APLA/Web-App-1.21.tar.gz, APLA, 2012; MetaCPAN )
Web-App/lib/Web/App/Helper.pm ( view source; MetaCPAN )
$pack->root;
	
	my $global_config_patch_json = delete $files->{global_config_patch_json};
	my $local_config_patch_json  = delete $files->{local_config_patch_json};
	
	debug "storing config files";
	
	
hin helper we have json structures
	my $serializer = Project::Easy::Config->serializer ('json');
	
	# global config
	my $patch = $serializer->parse_string ($global_config_patch_json);
	$pack->conf_pat
n
	$local_config_patch_json = Project::Easy::Config::string_from_template (
		$local_config_patch_json,
		$vars
	);
	$patch = $serializer->parse_string ($local_config_patch_json);
	$pack->fixup_path->
HTML-FormsDj ( T/TL/TLINDEN/HTML-FormsDj-0.03.tar.gz, TLINDEN, 2012; MetaCPAN )
HTML-FormsDj/lib/HTML/FormsDj.pm ( view source; MetaCPAN )
hods here are not sufficient for you or if you have
to output something different than HTML (e.g. JSON or XML).

The structure returned will look like this (based on our
example above with some data f
Web-App ( A/AP/APLA/Web-App-1.21.tar.gz, APLA, 2012; MetaCPAN )
Web-App/lib/Web/App/Response.pm ( view source; MetaCPAN )

	# 1. set correct presentation
	# 2. remove redirect header
	
	$app->set_presentation ({type => 'json'});
	
	return;
}

sub new {
	my $class = shift;
	
	my $self = dclone ($template);
	
	if ($Class::
Protocol-XMLRPC ( V/VT/VTI/Protocol-XMLRPC-0.10.tar.gz, VTI, 2012; MetaCPAN )
Protocol-XMLRPC/lib/Protocol/XMLRPC.pm ( view source; MetaCPAN )
XMLRPC> is an XML-RPC protocol implementation. Method parameters
types are guessed just like in L<JSON>, but you can pass explicit type if
guessing is wrong for you. Read more about parameter creation
Net-Discident ( M/MN/MNF/Net-Discident-v1.0.1.tar.gz, MNF, 2012; MetaCPAN )
Net-Discident/lib/Net/Discident.pm ( view source; MetaCPAN )
ern::Perl;
use Digest::MD5     qw( md5_hex );
use File::Find;
use File::stat;
use HTTP::Lite;
use JSON;

use version;
our $VERSION = qv( 1.0.1 );

use constant BASE_URI => 'http://discident.com/v1';


        unless 200 == $code;
    
    return $http->body()
        if $raw;
    
    return from_json $http->body()
}
sub query_url {
    my $self  = shift;
    my $ident = shift // $self->ident();
 
WebService-SEOmoz-FreeAPI ( S/SE/SEOVISUAL/WebService-SEOmoz-FreeAPI-0.01.tar.gz, SEOVISUAL, 2012; MetaCPAN )
WebService-SEOmoz-FreeAPI/FreeAPI.pm ( view source; MetaCPAN )

use warnings;
use Digest::SHA qw( hmac_sha1_base64 );
use HTTP::Request::Common qw(POST);
use JSON;
use LWP::UserAgent;
use URI::Escape;
use vars qw/$module $errstr $timeout $VERSION $sendUrl $
seragent} ) {
		$args->{useragent} = LWP::UserAgent->new();
	}
	unless ( $args->{json} ) {
		$args->{json} = JSON->new->allow_nonref;
	}

	# Its important to realize that if your time is not ou
authenticationQuery;
}

sub postAPIRequest {
	my ($self, $apiUrl, $websiteString) = @_;
	my $json_string;
	$module .= ' -> postAPIRequest';

	my $http_header = HTTP::Request->new(POST => $apiU
Web-App ( A/AP/APLA/Web-App-1.21.tar.gz, APLA, 2012; MetaCPAN )
Web-App/lib/Web/App/Request.pm ( view source; MetaCPAN )
content output";
	
	# fix for "Wide characters to print"
	binmode STDOUT, ":utf8";
	utf8::decode ($content);
	$| = 1;
	
	print $content;
}

sub TO_JSON {
	my $self = shift;
	
	return {%$self}; 
}

1;
Net-OAuth2-Scheme ( W/WR/WROG/Net-OAuth2-Scheme-0.03.tar.gz, WROG, 2012; MetaCPAN )
Net-OAuth2-Scheme/lib/Net/OAuth2/Scheme.pm ( view source; MetaCPAN )
uthorization grant
  ... send token request

  # receive token
  #
  my %params = ... decode from JSON, URI fragment, etc...
  my ($error, @token) = $access_scheme->token_accept(%params)
  ... complai
ear in a successful token or authorization
endpoint response (i.e., prior to being encoded into a JSON structure
or URI fragment on the authorization server, or, equivalently, after
such decoding on t
Labkey-Query ( B/BB/BBIMBER/Labkey-Query-1.02.tar.gz, BBIMBER, 2012; MetaCPAN )
Labkey-Query/lib/Labkey/Query.pm ( view source; MetaCPAN )
LICENSE-2.0

=cut

package Labkey::Query;

use strict;
use LWP::UserAgent;
use HTTP::Request;
use JSON;
use Data::Dumper;
use FileHandle;
use File::Spec;
use File::HomeDir;
use Carp;
use URI;

use var
k( $response->status_line );
	}

	my $json_obj = JSON->new->utf8->decode( $response->content )
	  || croak("ERROR: Unable to decode JSON.\n$url\n");

	return $json_obj;

}


=head1 insertRows()

inser
 @_;
	
	my $json_obj = JSON->new->utf8->encode($data);

	my $req = new HTTP::Request;
	$req->method('POST');
	$req->url($url);
	$req->content_type('application/json');
	$req->content($json_obj);
	$req
WebService-MyGengo ( N/NH/NHEINRIC/WebService-MyGengo-0.012.tar.gz, NHEINRIC, 2012; MetaCPAN )
WebService-MyGengo/lib/WebService/MyGengo/RequestFactory.pm ( view source; MetaCPAN )
 };

use WebService::MyGengo::Exception;

use URI;
use Digest::HMAC;
use Digest::SHA1;
use JSON qw(encode_json);

=head1 NAME

WebService::MyGengo::RequestFactory - A factory for creating myGengo API 
;

    $req_params->{data} = encode_json($params);

    my $request = HTTP::Request->new( $method => $uri );
    $request->push_header( 'Accept' => 'application/json; charset=utf-8' );
    $request->p
uest = HTTP::Request->new( $method => $uri );
    $request->push_header( 'Accept' => 'application/json; charset=utf-8' );

    return $request;
}

#=head2 _get_uri_and_req_params( $method, $endpoint )
WebService-MyGengo ( N/NH/NHEINRIC/WebService-MyGengo-0.012.tar.gz, NHEINRIC, 2012; MetaCPAN )
WebService-MyGengo/lib/WebService/MyGengo/Response.pm ( view source; MetaCPAN )
e Moose;
use namespace::autoclean;

extends 'WebService::MyGengo::Base';

use HTTP::Response;
use JSON;

=head1 NAME

WebService::MyGengo::Response - An response from the myGengo API

=head1 DESCRIPTI
);

#=head2 _serializer
#
#A JSON object.
#
#B<Note:> The API also supports XML. We do not. :)
#
#=cut
has _serializer => (
    is          => 'ro'
    , isa       => 'JSON'
    , init_arg  => undef
 
      => 1
    , builder   => '_build__serializer'
    );
sub _build__serializer {
    return new JSON;
}

#=head2 _deserialized
#
#The deserialized response body.
#
#Returns undef if the body could n
Protocol-XMLRPC ( V/VT/VTI/Protocol-XMLRPC-0.10.tar.gz, VTI, 2012; MetaCPAN )
Protocol-XMLRPC/lib/Protocol/XMLRPC/ValueFactory.pm ( view source; MetaCPAN )
e, $type) = ($type, '') unless defined $value;

    return $value if blessed($value);

    # From JSON::PP
    my $flags = B::svref_2object(\$value)->FLAGS;
    my $is_number = $flags & (B::SVp_IOK | 
WebService-MyGengo ( N/NH/NHEINRIC/WebService-MyGengo-0.012.tar.gz, NHEINRIC, 2012; MetaCPAN )
WebService-MyGengo/lib/WebService/MyGengo/Client.pm ( view source; MetaCPAN )
refs are keyed
        #   unnecessarily by increment ID.
        #   This is actually in the raw JSON string...
        my $args =
            ref($_) eq 'ARRAY'
            ? $_->[0]
            : $

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