Group
Extension

Matches 35358

Net-GPSD3 ( M/MR/MRDVT/Net-GPSD3-0.19.tar.gz, MRDVT, 2013; MetaCPAN )
Net-GPSD3/lib/Net/GPSD3/Return/POLL.pm ( view source; MetaCPAN )
 GPSD daemon.

=head1 METHODS

=head2 class

Returns the object class

=head2 string

Returns the JSON string

=head2 parent

Return the parent L<Net::GPSD3> object

=head2 time

=head2 timestamp

=he
t

sub fix {shift->Fixes->[0]};
sub tpv {shift->Fixes->[0]};

=head2 Fixes

Object wrapper around JSON data

  my $fix=$poll->Fixes #isa [] of Net::GPSD3::Return::TPV objects
  my @fix=$poll->Fixes #i
 method consistant

=cut

sub sky {shift->Skyviews->[0]};

=head2 Skyviews

Object wrapper around JSON data

  my $sky=$poll->Skyviews #isa [] of Net::GPSD3::Return::SKY objects
  my @sky=$poll->Skyvi
Net-MyPeople-Bot ( K/KH/KHS/Net-MyPeople-Bot-0.320.tar.gz, KHS, 2013; MetaCPAN )
Net-MyPeople-Bot/lib/Net/MyPeople/Bot.pm ( view source; MetaCPAN )
n;
use Data::Dumper;
use LWP::UserAgent;
use LWP::Protocol::https;
use HTTP::Request::Common;
use JSON;
use Data::Printer;
use URI::Escape;
use File::Util qw(SL);
use Encode qw(is_utf8 _utf8_off);
use
. '/buddy/send.json';
our $API_BUDDY = $API_BASE . '/profile/buddy.json';
our $API_GROUP_MEMBERS = $API_BASE . '/group/members.json';
our $API_GROUP_SEND = $API_BASE . '/group/send.json';
our $API_GRO
UP_EXIT = $API_BASE . '/group/exit.json';
our $API_FILE_DOWNLOAD = $API_BASE . '/file/download.json';

our $API_SEND_LENGTH = 1000;

sub BUILD {
	my $self = shift;
}

sub _call_file {
	my $self = shif
Plack-App-DataSection ( S/SO/SONGMU/Plack-App-DataSection-0.05.tar.gz, SONGMU, 2013; MetaCPAN )
Plack-App-DataSection/lib/Plack/App/DataSection.pm ( view source; MetaCPAN )
type);
}

sub is_binary {
    my $mime_type = shift;

    $mime_type !~ /\b(?:text|xml|javascript|json)\b/;
}

sub last_modified {
    my $self = shift;

    $self->{last_modified} ||= do {
        my
PGXN-API ( D/DW/DWHEELER/PGXN-API-v0.16.3.tar.gz, DWHEELER, 2013; MetaCPAN )
PGXN-API/lib/PGXN/API/Indexer.pm ( view source; MetaCPAN )
 );
}

sub update_root_json {
    my $self = shift;
    my $api  = PGXN::API->instance;
    say "Updating mirror root JSON" if $self->verbose;

    # Augment and write index.json.
    my $src = catfil
e $api->mirror_root, 'index.json';
    my $dst = catfile $api->doc_root, 'index.json';
    my $tmpl = $api->read_json_from($src);
    $tmpl->{source}    = "/src/{dist}/{dist}-{version}/";
    $tmpl->{
}/';
    $tmpl->{userlist}  = '/users/{letter}.json';
    ($tmpl->{htmldoc}  = $tmpl->{meta}) =~ s{/META[.]json$}{/{+docpath}.html};
    $api->write_json_to($dst, $tmpl);

    return $self;
}

sub cop
Hubot-Adapter-Mypeople ( A/AA/AANOAA/Hubot-Adapter-Mypeople-0.0.6.tar.gz, AANOAA, 2013; MetaCPAN )
Hubot-Adapter-Mypeople/lib/Hubot/Adapter/Mypeople.pm ( view source; MetaCPAN )
ose;
use namespace::autoclean;

extends 'Hubot::Adapter';

use AnyEvent::MyPeopleBot::Client;
use JSON::XS;
use Encode 'decode_utf8';

use Hubot::Message;

has httpd => (
    is         => 'ro',
    l
name};

    $self->client->profile(
        $buddyId,
        sub {
            my $data = decode_json(shift);
            $user->{name} = $data->{buddys}[0]{name};
            $cb->($user);
        }
oups ) {
        $self->client->exit(
            $groupId,
            sub {
                my $json = shift;
                return if $self->count_groups != ++$exit;

                $self->httpd-
Net-GPSD3 ( M/MR/MRDVT/Net-GPSD3-0.19.tar.gz, MRDVT, 2013; MetaCPAN )
Net-GPSD3/lib/Net/GPSD3/Return/VERSION.pm ( view source; MetaCPAN )
 GPSD daemon.

=head1 METHODS

=head2 class

Returns the object class

=head2 string

Returns the JSON string

=head2 parent

Return the parent L<Net::GPSD3> object

=head2 release

=cut

sub release 
Net-GPSD3 ( M/MR/MRDVT/Net-GPSD3-0.19.tar.gz, MRDVT, 2013; MetaCPAN )
Net-GPSD3/lib/Net/GPSD3/Return/ERROR.pm ( view source; MetaCPAN )
 GPSD daemon.

=head1 METHODS

=head2 class

Returns the object class

=head2 string

Returns the JSON string

=head2 parent

Return the parent Net::GPSD object

=head2 message

Textual error message.
Dancer-Plugin-FormValidator ( H/HO/HOBBESTIG/Dancer-Plugin-FormValidator-1.131620.tar.gz, HOBBESTIG, 2013; MetaCPAN )
Dancer-Plugin-FormValidator/lib/Dancer/Plugin/FormValidator.pm ( view source; MetaCPAN )
eption
register_exception('ProfileInvalidFormat',
    message_pattern => "Unknown format use yml, json or pl: %s"
);

my $dfv;
my $results;


register form_validator_error => sub {
    $results     = 
ile;

    my $available_deserializer = {
        json => sub {
            my ( $file ) = @_;

            load JSON::Syck;

            my $data = JSON::Syck::LoadFile($file);
            return $dat
      - name
        - subject
        - body
      msgs:
        missing: Not here

Example with json format:

    {
        "profile_contact": {
            "required": [
                "name",
   
Google-OAuth ( T/TQ/TQISJIM/Google-OAuth-0.05.tar.gz, TQISJIM, 2013; MetaCPAN )
Google-OAuth/lib/Google/OAuth.pm ( view source; MetaCPAN )
age Google::OAuth ;
use base NoSQL::PL2SQL ;
use Google::OAuth::Config ;
use LWP::UserAgent ;
use JSON ;

use 5.008009;
use strict;
use warnings;

require Exporter;

push @Google::OAuth::ISA, 
		qw( E
ntent = $self->response( @_ )->content ;
	return $content unless $content =~ /^{/s ;
	return JSON::from_json( $content ) ;
	}

sub headers {
	shift @_ if $_[0] eq __PACKAGE__ ;
	shift @_ if ref $_[0] 
 HTTP::Response->content >> and returns the body of the
HTTP response.

If the response body is a JSON definition, C<content()> returns a
perl object based on that definition.  Otherwise it returns a 
Google-OAuth ( T/TQ/TQISJIM/Google-OAuth-0.05.tar.gz, TQISJIM, 2013; MetaCPAN )
Google-OAuth/samples/Facebook/OAuth.pm ( view source; MetaCPAN )
Google::OAuth::CGI->new( $self->{args} )->query_string
			) ) ;

	## returns a string on success, JSON on failure - crazy huh?

	return $out if ref $out ;
	return { text => $out } unless $out =~ /acce
ethod definition.

Facebook uses an HTTP GET request instead of a POST.

Facebook does not return JSON when a token request succeeds.

The overridden method copies the token into an element named 
I<f
Module-Install-CPANfile ( M/MI/MIYAGAWA/Module-Install-CPANfile-0.12.tar.gz, MIYAGAWA, 2013; MetaCPAN )
Module-Install-CPANfile/lib/Module/Install/CPANfile.pm ( view source; MetaCPAN )
$self->is_admin) {
        # force generate META.json
        CPAN::Meta->load_file('META.yml')->save('META.json');

        print "Regenerate META.json and META.yml using cpanfile\n";
        $file->
merge_meta('META.yml');
        $file->merge_meta('META.json');
    }

    for my $metafile (grep -e, qw(MYMETA.yml MYMETA.json)) {
        print "Merging cpanfile prereqs to $metafile\n";
        $fi
Google-OAuth ( T/TQ/TQISJIM/Google-OAuth-0.05.tar.gz, TQISJIM, 2013; MetaCPAN )
Google-OAuth/samples/google.pm ( view source; MetaCPAN )
= 1, @items ;		## insert


## Sample code for uploading  files:

use google ;
use MimeTypes ;
use JSON ;
use MIME::Entity ;
use File::Basename ;
use Getopt::Std ;

getopts( 'op:t' ) ;

$token = Google
plication/vnd.google-apps.folder' ;
	my $content = JSON::to_json( $doc ) ;

	$out = $token->content( POST => Google::Drive->url, 
			'application/json', 
			$content ) ;
	do 'perlterm.pl' ;
	exit ;
	}
or die "Unknown Mime Type" ;

$content = JSON::to_json( $doc ) ;

$m = MIME::Entity->build( Type => 'multipart/mixed' ) ;
$m->attach( Type => 'application/json', 
		Encoding => '7bit',
		Data => $cont
WWW-Bizowie-API ( A/AQ/AQUILINA/WWW-Bizowie-API-0.02.tar.gz, AQUILINA, 2013; MetaCPAN )
WWW-Bizowie-API/lib/WWW/Bizowie/API.pm ( view source; MetaCPAN )
se WWW::Bizowie::API::Response;
use LWP::UserAgent;
use HTTP::Request::Common;
use Try::Tiny;
use JSON;

our $VERSION = '0.02';

=head1 NAME

WWW::Bizowie::API - Perl interface to the Bizowie.com API


    die "[Bizowie::API] fatal error: no method given" unless $method;

    my $request = encode_json($params || { });

    my $q = $self->{ua}->request(POST("https://${site}/bz/api/$method",
       
);

    my $o;
    {
        local $SIG{__DIE__} = sub { };
        try {
            $o = decode_json($q->decoded_content);
        } catch {       
            $o = { unprocessed => 1 };
        };
PGXN-Meta-Validator ( D/DW/DWHEELER/PGXN-Meta-Validator-v0.16.0.tar.gz, DWHEELER, 2013; MetaCPAN )
PGXN-Meta-Validator/lib/PGXN/Meta/Validator.pm ( view source; MetaCPAN )
se JSON;
use Carp qw(croak);
our $VERSION = v0.16.0;

=head1 Name

PGXN::Meta::Validator - Validate PGXN distribution metadata structures

=head1 Synopsis

  my $struct = decode_json_file('META.json')
lass;
}

=head3 C<load_file>

  my $meta = PGXN::Meta::Validator->load_file('META.json');

Reads in the specified JSON file and passes the resulting data structure to
C<new()>, returning the resulting
nts are not valid
JSON.

=cut

sub load_file {
    my ($class, $file) = @_;

    croak "load_file() requires a valid, readable filename"
        unless -r $file;

    $class->new(JSON->new->decode(do 
WWW-Billomat ( A/AC/ACALPINI/WWW-Billomat-0.01.tar.gz, ACALPINI, 2013; MetaCPAN )
WWW-Billomat/lib/WWW/Billomat.pm ( view source; MetaCPAN )
e;

use WWW::Billomat::Client;
use WWW::Billomat::Invoice;
use WWW::Billomat::Invoice::Item;

use JSON;

=head1 NAME

WWW::Billomat - API access to Billomat services

=head1 VERSION

Version 0.01

=cu

    return undef;
}

sub _create_object {
    my($self, $object) = @_;
    my $body = $self->_to_json($object);
    # warn "BODY=$body\n";
    # $body = Encode::encode('ASCII', $body, Encode::FB_XMLC
  # 'Content-Type' => 'application/xml; charset=utf-8'
            'Content-Type' => 'application/json'
        }
    );
    if($response->responseCode() == 201) {
        return $self->_get_object_fr
Module-Build-Pluggable-PDL ( M/MG/MGRIMES/Module-Build-Pluggable-PDL-0.23.tar.gz, MGRIMES, 2013; MetaCPAN )
Module-Build-Pluggable-PDL/lib/Module/Build/Pluggable/PDL.pm ( view source; MetaCPAN )
leaned up.

In addition, an entry will be made into C<provides> for the C<.pm> file of the
C<META.json/yml> files. This will assist PAUSE, search.cpan.org and metacpan.org
in properly indexing the dis
Catalyst-Model-Riak ( N/NL/NLTBO/Catalyst-Model-Riak-0.07.tar.gz, NLTBO, 2013; MetaCPAN )
Catalyst-Model-Riak/lib/Catalyst/Model/Riak.pm ( view source; MetaCPAN )
eate.pl model ModelName Riak http:/192.168.0.1:8089 900
	
	
	# In you controller use
	my $coder = JSON::XS->new->utf8->pretty->allow_nonref;
	
	#
	# Set bucket
	#
	$c->model("ModelName")->bucket('Buck
eate

Creates a new key/value pair

	$c->model("ModelName")->create({ key => 'keyname', value => $json_data });
	

=head2 delete

Deletes a key/value pair

=head2 get

Get a key/value pair from the ri
head2 update

Update a key/value pair

	$c->model('ModelName')->update( { key => 'key', value => $json_data } );

=head2 dw

Get or set the number of partitions to wait for write confirmation

=head2 
jQuery-File-Upload-Imager ( R/RS/RSAVAGE/jQuery-File-Upload-Imager-1.01.tgz, RSAVAGE, 2013; MetaCPAN )
jQuery-File-Upload-Imager/lib/jQuery/File/Upload/Imager.pm ( view source; MetaCPAN )
package jQuery::File::Upload::Imager;

use 5.008008;
use strict;
use warnings;

use CGI;
use JSON::XS;
use Net::SSH2;
use Net::SSH2::SFTP;
use Imager;
use Cwd 'abs_path';
use Digest::MD5 qw(md5_hex);
estion
  		if ($self->ctx->req->headers->header('Accept') =~ qr(application/json) ) {
	  		$content_type = 'application/json';
  		}

		$self->ctx->stash->{current_view} = '';
		$self->ctx->res->conte
');
	}

	#they should provide image=y or image=n if image
	my $json = JSON::XS->new->ascii->pretty->allow_nonref;
	$self->{output} = $json->encode({files => \@arr});
}

sub _no_ext {
	my $self = shift
AnyEvent-MyPeopleBot-Client ( A/AA/AANOAA/AnyEvent-MyPeopleBot-Client-0.0.2.tar.gz, AANOAA, 2013; MetaCPAN )
AnyEvent-MyPeopleBot-Client/lib/AnyEvent/MyPeopleBot/Client.pm ( view source; MetaCPAN )
pedClient->new("https://apis.daum.net/mypeople/profile/buddy.json?apikey=" . $self->apikey);
    $client->header('Accept', 'application/json')
        ->post(
            { buddyId => $buddyId },
    
pedClient->new("https://apis.daum.net/mypeople/group/members.json?apikey=" . $self->apikey);
    $client->header('Accept', 'application/json')
        ->post(
            { groupId => $groupId },
    
copedClient->new("https://apis.daum.net/mypeople/$which/send.json?apikey=" . $self->apikey);
    $client->header('Accept', 'application/json')
        ->post(
            \%params,
            sub {
 
Net-HTTP-Spore-Middleware-BaseUrl ( W/WE/WEBORAMA/Net-HTTP-Spore-Middleware-BaseUrl-0.02.tar.gz, WEBORAMA, 2013; MetaCPAN )
Net-HTTP-Spore-Middleware-BaseUrl/lib/Net/HTTP/Spore/Middleware/BaseUrl.pm ( view source; MetaCPAN )
ad1 VERSION

version 0.02

=head1 SYNOPSIS

    my $client = Net::HTTP::Spore->new_from_spec('api.json');
    $client->enable( 'BaseUrl',
        base_url  => 'www.perl.org',
    );

=head1 NAME

Net:

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