Group
Extension

Matches 35359

WebService-MoviePosterDB ( C/CJ/CJK/WebService-MoviePosterDB-0.18.tar.gz, CJK, 2011; MetaCPAN )
WebService-MoviePosterDB/lib/WebService/MoviePosterDB.pm ( view source; MetaCPAN )
::FileCache;

use Carp;

use Digest::MD5 qw(md5_hex);

use File::Spec::Functions qw(tmpdir);

use JSON;
use LWP::UserAgent;
use URI;

use WebService::MoviePosterDB::Movie;

=head1 METHODS

=head2 new(
m");
    $uri->path("json");
    $uri->query_form( map { my ($n, $v) = ($_, $_args{$_}); utf8::encode($n); utf8::encode($v); ($n => $v); } sort keys %_args );

    my $json = JSON->new()->decode($self
->_get_page($uri->as_string()));

    return WebService::MoviePosterDB::Movie->_new($json);

}

sub _get_secret {
    my $self = shift;
    my %args = @_;

    if ($self->{'api_key'} eq "demo" && $sel
API-ReviewBoard ( C/CH/CHETANG/API-ReviewBoard-0.1.tar.gz, CHETANG, 2011; MetaCPAN )
API-ReviewBoard/ReviewBoard.pm ( view source; MetaCPAN )
xt", autosave => 1);

        # post request to login
        my $link = $self->{_hostedurl}.'api/json/accounts/login/';
        my $request = new HTTP::Request('POST',$link);

        my $content = '
CatalystX-ExtJS ( P/PE/PERLER/CatalystX-ExtJS-2.1.3.tar.gz, PERLER, 2011; MetaCPAN )
CatalystX-ExtJS/tutorial/lib/MyApp/Controller/User/DBIC.pm ( view source; MetaCPAN )
}, 
        list   => { Direct => undef, DirectArgs => 1 },  
    },
	class => 'DBIC::User',
	use_json_boolean => 1,
	create_requires => [qw(email first last)],
	return_object => 1,
);

before 'deseri
Monitis ( Y/YK/YKO/Monitis-0.9.tar.gz, YKO, 2011; MetaCPAN )
Monitis/lib/Monitis.pm ( view source; MetaCPAN )
::Request;
use HTTP::Headers;
use HTTP::Request::Common;

use Digest::SHA 'hmac_sha1_base64';
use JSON;

our $VERSION = '0.9';

use constant DEBUG => $ENV{MONITIS_DEBUG} || 0;

require Carp;

our $TOK

    $self->{ua} ||= LWP::UserAgent->new(agent => "perl-monitis-api/$VERSION");

    $self->{json} ||= JSON->new;

    bless $self, $class;
}

sub auth_token {
    my ($self, $token, $expires) = @_;

w($self->api_url);

    $uri->query_form(
        action    => 'authToken',
        output    => 'json',
        version   => $API_VERSION,
        secretkey => $self->secret_key,
        apikey    =>
Bash-Completion-Plugins-cpanm ( P/PE/PERLER/Bash-Completion-Plugins-cpanm-0.0.2.tar.gz, PERLER, 2011; MetaCPAN )
Bash-Completion-Plugins-cpanm/README.pod ( view source; MetaCPAN )
use base 'Bash::Completion::Plugin';

use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
use JSON;

use Bash::Completion::Utils qw( command_in_path );

sub should_activate {
    my @commands = qw
= $ua->request(
        POST 'http://api.metacpan.org/release/_search',
        Content => encode_json(
            {   size   => 1000,
                fields => ['distribution'],
                sort
al {
        my $json = decode_json( $res->content );
        $req->candidates('') unless ( $json->{hits} );
        my @candidates;
        my $exact_match = 0;
        for ( @{ $json->{hits}->{hits}
perlrocks ( G/GU/GUGOD/perlrocks-0.02.tar.gz, GUGOD, 2011; MetaCPAN )
perlrocks/lib/App/perlrocks/Helpers.pm ( view source; MetaCPAN )
package App::perlrocks::Helpers;
use strict;
use warnings;
use HTTP::Tiny;
use JSON qw(from_json to_json);

use Exporter::Lite;
our @EXPORT = qw(metacpan_request);

sub metacpan_request {
    my ($pat
        {
            content => defined($data) ? to_json($data) : ''
        }
    );

    if ($response->{success}) {
        my $data = from_json($response->{content});
        return $cb ? $cb->($
data) : $data;
    }

    die "Request failed: " . to_json($response);
}


1;
Persevere-Client ( W/WI/WIRELESSD/Persevere-Client-0.31.tar.gz, WIRELESSD, 2011; MetaCPAN )
Persevere-Client/lib/Persevere/Client/Class.pm ( view source; MetaCPAN )
rict;
use warnings;

=head1 NAME

Persevere::Client::Class - The Class interface to Persevere the JSON Database 

=cut

our $VERSION = '0.31';

use HTTP::Request::Common qw(GET HEAD POST PUT DELETE);
	$newclass{extends} = \%extends;
		if ($self->{uuid}){
			$newclass{useUUIDs} = $self->{client}->{json}->true;
		}
		if (defined $self->{properties}){
			$newclass{properties} = \%{$self->{properties}
elf->{client}->{debug}){
			print "DEBUG (FUNCTION create): POST $classpath " . $self->{client}->{json}->encode(\%newclass) . "\n";
		}
		my $req = $self->{client}->req('POST', $classpath, undef, \%ne
WWW-TypePad ( S/SA/SAYMEDIA/WWW-TypePad-0.4002.tar.gz, SAYMEDIA, 2011; MetaCPAN )
WWW-TypePad/lib/WWW/TypePad/RequestProperties.pm ( view source; MetaCPAN )
ck

=cut

sub get {
    my $api = shift;
    my @args;
    my $uri = sprintf '/request-properties.json', @args;
    $api->base->call("GET", $uri, @_);
}


=pod

=back

=cut

### END auto-generated

1;
WWW-TypePad ( S/SA/SAYMEDIA/WWW-TypePad-0.4002.tar.gz, SAYMEDIA, 2011; MetaCPAN )
WWW-TypePad/lib/WWW/TypePad/ApiKeys.pm ( view source; MetaCPAN )
   my $api = shift;
    my @args;
    push @args, shift; # id
    my $uri = sprintf '/api-keys/%s.json', @args;
    $api->base->call("GET", $uri, @_);
}


=pod

=back

=cut

### END auto-generated

1;
Persevere-Client ( W/WI/WIRELESSD/Persevere-Client-0.31.tar.gz, WIRELESSD, 2011; MetaCPAN )
Persevere-Client/lib/Persevere/Client.pm ( view source; MetaCPAN )
package Persevere::Client;

use warnings;
use strict;
use JSON;
use LWP::UserAgent;
use HTTP::Request qw(GET HEAD POST PUT DELETE);
use HTTP::Status;
use HTTP::Headers;
use HTTP::Response;
use HTTP::C
e Encode qw(encode);

=head1 NAME

Persevere::Client - A Simple to use Interface to Persevere the JSON Database 

=head1 VERSION

Version 0.31

=cut

our $VERSION = '0.31';

sub new{
	my $class = shif
opt{host}   || 'localhost') . ':'   .
		($opt{port}   || '8080')      . '/';
	}
	$self{json} = ($opt{json} || JSON->new->utf8->allow_blessed);
	$self{ua}   = ($opt{ua}   || LWP::UserAgent->new(agent =
WWW-TypePad ( S/SA/SAYMEDIA/WWW-TypePad-0.4002.tar.gz, SAYMEDIA, 2011; MetaCPAN )
WWW-TypePad/lib/WWW/TypePad/Relationships.pm ( view source; MetaCPAN )
 $api = shift;
    my @args;
    push @args, shift; # id
    my $uri = sprintf '/relationships/%s.json', @args;
    $api->base->call("GET", $uri, @_);
}


=pod



=item get_status

  my $res = $tp->re
 shift;
    my @args;
    push @args, shift; # id
    my $uri = sprintf '/relationships/%s/status.json', @args;
    $api->base->call("GET", $uri, @_);
}


sub status {
    my $self = shift;
    Carp::
 shift;
    my @args;
    push @args, shift; # id
    my $uri = sprintf '/relationships/%s/status.json', @args;
    $api->base->call("PUT", $uri, @_);
}


=pod

=back

=cut

### END auto-generated

1;
Acme-Working-Out-Dependencies-From-META-files-Will-Be-Wrong-At-Some-Point-Like-This-Module-For-Instance ( B/BI/BINGOS/Acme-Working-Out-Dependencies-From-META-files-Will-Be-Wrong-At-Some-Point-Like-This-Module-For-Instance-9.99.tar.gz, BINGOS, 2011; MetaCPAN )
Acme-Working-Out-Dependencies-From-META-files-Will-Be-Wrong-At-Some-Point-Like-This-Module-For-Instance/lib/Acme/Working/Out/Dependencies/From/META/files/Will/Be/Wrong/At/Some/Point/Like/This/Module/For/Instance.pm ( view source; MetaCPAN )
ke being right

=head1 VERSION

version 9.99

=head1 DESCRIPTION

Using the C<META.yml> or C<META.json> to work out the prereqs for a distribution without being aware that
authors can do what they wan
stribution hammers home this point by not specifying any prereqs at all in C<META.yml> and C<META.json>
and autogenerates a list of prereqs when C<Makefile.PL> is executed.

So what exactly are the pr
DBR ( I/IM/IMPIOUS/DBR-1.5.tar.gz, IMPIOUS, 2011; MetaCPAN )
DBR/lib/DBR/Config/Trans/Dollars.pm ( view source; MetaCPAN )
$a,$b) = ($_[0]->cents, $_[1] );
      new ($_[2] ? $b / $a : $a / $b);
},

'fallback' => 1;

*TO_JSON = \&dollars;

sub cents   {
      return '' unless defined($_[0][0]);
      return $_[0][0]
};
su
DBR ( I/IM/IMPIOUS/DBR-1.5.tar.gz, IMPIOUS, 2011; MetaCPAN )
DBR/lib/DBR/ResultSet/Empty.pm ( view source; MetaCPAN )
 }

sub dummy_record{ DUMMY }
sub hashmap_multi { wantarray?():{} }
sub hashmap_single{ wantarray?():{} }

sub next     { DUMMY }
sub where    { DUMMY }
sub count    { 0     }

sub TO_JSON { [] }

1;
DBR ( I/IM/IMPIOUS/DBR-1.5.tar.gz, IMPIOUS, 2011; MetaCPAN )
DBR/lib/DBR/ResultSet.pm ( view source; MetaCPAN )
    eval $code;

      die "eval returned '$@'" if $@;

      wantarray ? @out : \@out;
}

sub TO_JSON {
      my $self = shift;

      return $self->dump(
			 map { $_->name } @{ $self->[f_query]->pr
DBR ( I/IM/IMPIOUS/DBR-1.5.tar.gz, IMPIOUS, 2011; MetaCPAN )
DBR/lib/DBR/Config/MetaSpec.pm ( view source; MetaCPAN )
 a work barely in progress... ;)

use strict;
use base 'DBR::Common';
use DBR::Config::Field;
use JSON;

use Data::Dumper;

sub new {
      my( $package ) = shift;
      my %params = @_;
      my $sel
DBR ( I/IM/IMPIOUS/DBR-1.5.tar.gz, IMPIOUS, 2011; MetaCPAN )
DBR/lib/DBR/Record/Base.pm ( view source; MetaCPAN )

#       $_[0][1]->set($_[0],@_);
# }

sub next { croak "Can not call next on a record" }

sub TO_JSON { die "This part doesn't work yet" } #HERE - this needs work

#sub DESTROY { print STDERR "RECORD
DBR ( I/IM/IMPIOUS/DBR-1.5.tar.gz, IMPIOUS, 2011; MetaCPAN )
DBR/lib/DBR/Misc/Dummy.pm ( view source; MetaCPAN )
 => sub { $_[1] },
  '-'  => sub { return $_[2] ? $_[1] : 0 - $_[1] },

  '*'  => sub { 0 },
  '/'  => sub { 0 },

 'fallback' => 1
 ;

sub TO_JSON { undef }

our $AUTOLOAD;
sub AUTOLOAD { shift }
1;
DBR ( I/IM/IMPIOUS/DBR-1.5.tar.gz, IMPIOUS, 2011; MetaCPAN )
DBR/lib/DBR/Config/Trans/UnixTime.pm ( view source; MetaCPAN )
: Invalid operation '$_[3]' The ways in which you can use UnixTime objects is restricted"}
;

*TO_JSON = \&datetime;

sub unixtime { $_[0][0] || '' };

# Using $ENV{TZ} and the posix functions is ugly
DBR ( I/IM/IMPIOUS/DBR-1.5.tar.gz, IMPIOUS, 2011; MetaCPAN )
DBR/lib/DBR/Config/Trans/Percent.pm ( view source; MetaCPAN )
t: Invalid operation '$_[3]' The ways in which you can use percent objects is restricted"}
;

*TO_JSON = \&format;

sub value  {
      return '' unless defined($_[0][0]);
      return $_[0][0]
};

sub

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