Group
Extension

Matches 35358

DBIx-Result-Convert-JSONSchema ( M/MA/MALISHEW/DBIx-Result-Convert-JSONSchema-0.06.tar.gz, MALISHEW, 2019; MetaCPAN )
DBIx-Result-Convert-JSONSchema/lib/DBIx/Result/Convert/JSONSchema.pm ( view source; MetaCPAN )
package DBIx::Result::Convert::JSONSchema;

our $VERSION = '0.06';


=head1 NAME

DBIx::Result::Convert::JSONSchema - Convert DBIx result schema to JSON schema

=begin html

    <a href='https://travi
s-ci.org/Humanstate/p5-dbix-result-convert-jsonschema?branch=master'><img src='https://travis-ci.org/Humanstate/p5-dbix-result-convert-jsonschema.svg?branch=master' alt='Build Status' /></a>
    <a hr
s.io/github/Humanstate/p5-dbix-result-convert-jsonschema?branch=master'><img src='https://coveralls.io/repos/github/Humanstate/p5-dbix-result-convert-jsonschema/badge.svg?branch=master' alt='Coverage 
DBIx-Result-Convert-JSONSchema ( M/MA/MALISHEW/DBIx-Result-Convert-JSONSchema-0.06.tar.gz, MALISHEW, 2019; MetaCPAN )
DBIx-Result-Convert-JSONSchema/lib/DBIx/Result/Convert/JSONSchema/Type/MySQL.pm ( view source; MetaCPAN )
package DBIx::Result::Convert::JSONSchema::Type::MySQL;

=head1 NAME

DBIx::Result::Convert::JSONSchema::Type::MySQL - Mapping of MySQL field type to JSON property type

=head1 VERSION

    0.01

=hea
rt::JSONSchema::Type::MySQL;
    my $type_map = DBIx::Result::Convert::JSONSchema::Type::MySQL->get_type_map;

=head1 DESCRIPTION

This module defines mapping between DBIx MySQL field types to JSON sc
 double /, 'double precision' ],
    object  => [ qw/ json / ],
);

=head2 C<get_type_map>

Return mapping of DBIx::Class:Result field name => JSON Schema field name.

    # { decimal => 'number', tim
Plack-App-GraphQL ( J/JJ/JJNAPIORK/Plack-App-GraphQL-0.003.tar.gz, JJNAPIORK, 2019; MetaCPAN )
Plack-App-GraphQL/lib/Plack/App/GraphQL/UITemplate.pm ( view source; MetaCPAN )
mplate {
    $/ = undef;
    return my $data = <DATA>;
  }

has json_encoder => (
  is => 'ro',
  required => 1,
  handles => {
    json_encode => 'encode',
  },
);

has graphiql_version => (
  is => 
fe_serialize {
  my ($self, $data) = @_;
  if($data) {
    my $json = $self->json_encode($data);
    $json =~ s#/#\\/#g;
    return $json;
  } else {
    return 'undefined';
  }
}

sub process {
  my 
'post',
        headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json'
        },
        body: JSON.stringify(graphQLParams),
        credentials: 'include',
Plack-App-GraphQL ( J/JJ/JJNAPIORK/Plack-App-GraphQL-0.003.tar.gz, JJNAPIORK, 2019; MetaCPAN )
Plack-App-GraphQL/lib/Plack/App/GraphQL.pm ( view source; MetaCPAN )
);

  sub _build_ui_template {
    my $self = shift;
    $self->ui_template_class->new(json_encoder => $self->json_encoder, graphiql_version => $self->graphiql_version);
  }

has graphiql => (
  is =>
json_encoder => (
  is => 'ro',
  required => 1,
  handles => {
    json_encode => 'encode',
    json_decode => 'decode',
  },
  builder => '_build_json_encoder',
);

  our $DEFAULT_JSON_CLASS = 'JSON
::MaybeXS';
  sub _build_json_encoder {
    return our $JSON_ENCODER ||= Plack::Util::load_class($DEFAULT_JSON_CLASS)
      ->new
      ->utf8
      ->allow_nonref;
  }

has exceptions_class => (
  is
App-Spec-Bash ( T/TI/TINITA/App-Spec-Bash-0.002.tar.gz, TINITA, 2019; MetaCPAN )
App-Spec-Bash/tools/generate-spec-pm.pl ( view source; MetaCPAN )
bash.yaml";
my $pm = "$Bin/../lib/App/Spec/Bash/Spec.pm";

my $yp = YAML::PP->new( schema => [qw/ JSON /] );

my $SPEC = $yp->load_file($specfile);
local $Data::Dumper::Sortkeys = 1;
local $Data::Dump
QQ-exmail ( Y/YO/YOURSELF/QQ-exmail-1.10.zip, YOURSELF, 2019; MetaCPAN )
QQ-exmail/lib/QQ/exmail/department.pm ( view source; MetaCPAN )
理部门

=cut

use strict;
use base qw(QQ::exmail);
use Encode;
use LWP::UserAgent;
use JSON;
use utf8;

our $VERSION = '1.10';
our @EXPORT = qw/ create update delete list search /;

=

    if ( @_ && $_[0] && ref $_[1] eq 'HASH' ) {
        my $access_token = $_[0];
        my $json = $_[1];
        my $ua = LWP::UserAgent->new;
        $ua->timeout(30);
        $ua->env_prox
oken=$access_token",Content => to_json($json,{allow_nonref=>1}),Content_type =>'application/json');
        if ($response->is_success) {
            return from_json($response->decoded_content,{utf8
Plack-Middleware-HatenaOAuth ( A/AS/ASTJ/Plack-Middleware-HatenaOAuth-0.02.tar.gz, ASTJ, 2019; MetaCPAN )
Plack-Middleware-HatenaOAuth/lib/Plack/Middleware/HatenaOAuth.pm ( view source; MetaCPAN )
ret consumer login_path);
use Plack::Request;
use Plack::Session;

use OAuth::Lite::Consumer;
use JSON::XS;

use constant +{
    SITE               => q{https://www.hatena.com},
    REQUEST_TOKEN_PATH
hatena.ne.jp/oauth/authorize},
    USER_INFO_URL      => q{https://n.hatena.ne.jp/applications/my.json},
};

sub prepare_app {
    my ($self) = @_;
    die join(
        "\n",
        'No consumer_key

        token  => $access_token,
    );
    $res->is_success or return;
    return eval { decode_json($res->decoded_content || $res->content) };
}

sub _error {
    my ($self, $code, $message) = @_;
QQ-exmail ( Y/YO/YOURSELF/QQ-exmail-1.10.zip, YOURSELF, 2019; MetaCPAN )
QQ-exmail/lib/QQ/exmail/user.pm ( view source; MetaCPAN )
理成员

=cut

use strict;
use base qw(QQ::exmail);
use Encode;
use LWP::UserAgent;
use JSON;
use utf8;

our $VERSION = '1.10';
our @EXPORT = qw/ create update delete get simplelist list

    if ( @_ && $_[0] && ref $_[1] eq 'HASH' ) {
        my $access_token = $_[0];
        my $json = $_[1];
        my $ua = LWP::UserAgent->new;
        $ua->timeout(30);
        $ua->env_prox
oken=$access_token",Content => to_json($json,{allow_nonref=>1}),Content_type =>'application/json');
        if ($response->is_success) {
            return from_json($response->decoded_content,{utf8
SMS-Send-Sendinblue ( J/JA/JAJM/SMS-Send-Sendinblue-0.02.tar.gz, JAJM, 2019; MetaCPAN )
SMS-Send-Sendinblue/lib/SMS/Send/Sendinblue.pm ( view source; MetaCPAN )
 warnings;

use parent 'SMS::Send::Driver';

use Carp;
use LWP::UserAgent;
use HTTP::Headers;
use JSON;

=head1 NAME

SMS::Send::Sendinblue - SMS::Send driver for Sendinblue

=head1 VERSION

Version 0
=> 'https://api.sendinblue.com/v3/transactionalSMS/sms');
    $request->content_type('application/json');
    $request->header(api_key => $self->{_apikey});

    my $body = {
        sender => $self->
   content => $params{text},
        type => 'transactional',
    };
    $request->content(encode_json($body));

    my $ua = LWP::UserAgent->new();
    my $response = $ua->request($request);

    if 
QQ-exmail ( Y/YO/YOURSELF/QQ-exmail-1.10.zip, YOURSELF, 2019; MetaCPAN )
QQ-exmail/lib/QQ/exmail/tag.pm ( view source; MetaCPAN )
理标签

=cut

use strict;
use base qw(QQ::exmail);
use Encode;
use LWP::UserAgent;
use JSON;
use utf8;

our $VERSION = '1.10';
our @EXPORT = qw/ create update delete get addtagusers del

    if ( @_ && $_[0] && ref $_[1] eq 'HASH' ) {
        my $access_token = $_[0];
        my $json = $_[1];
        my $ua = LWP::UserAgent->new;
        $ua->timeout(30);
        $ua->env_prox
oken=$access_token",Content => to_json($json,{allow_nonref=>1}),Content_type =>'application/json');
        if ($response->is_success) {
            return from_json($response->decoded_content,{utf8
QQ-exmail ( Y/YO/YOURSELF/QQ-exmail-1.10.zip, YOURSELF, 2019; MetaCPAN )
QQ-exmail/lib/QQ/exmail/useroption.pm ( view source; MetaCPAN )
能设置

=cut

use strict;
use base qw(QQ::exmail);
use Encode;
use LWP::UserAgent;
use JSON;
use utf8;

our $VERSION = '1.10';
our @EXPORT = qw/ get update /;

=head1 FUNCTION

=hea

    if ( @_ && $_[0] && ref $_[1] eq 'HASH' ) {
        my $access_token = $_[0];
        my $json = $_[1];
        my $ua = LWP::UserAgent->new;
        $ua->timeout(30);
        $ua->env_prox
oken=$access_token",Content => to_json($json,{allow_nonref=>1}),Content_type =>'application/json');
        if ($response->is_success) {
            return from_json($response->decoded_content,{utf8
Data-Transform-ExplicitMetadata ( B/BR/BRUMMETT/Data-Transform-ExplicitMetadata-0.09.tar.gz, BRUMMETT, 2019; MetaCPAN )
Data-Transform-ExplicitMetadata/lib/Data/Transform/ExplicitMetadata.pm ( view source; MetaCPAN )
lues in a json-friendly way

=head1 SYNOPSIS

  use Data::Transform::ExplicitMetadata qw(encode decode);
  use JSON;

  my $val = encode($some_data_structure);
  $io->print( JSON::encode_json( $val ))
alogous data
structure composed of only simple scalars, arrayrefs and hashrefs that may
be safely JSON-encoded, while retaining all the Perl-specific metadata
about typeglobs, blessed and tied referen
tem encode

Accepts a single value and returns a value that may be safely passed to
JSON::encode_json().  encode_json() cannot handle Perl-specific data like
blessed references or typeglobs.  Non-refe
QQ-exmail ( Y/YO/YOURSELF/QQ-exmail-1.10.zip, YOURSELF, 2019; MetaCPAN )
QQ-exmail/lib/QQ/exmail.pm ( view source; MetaCPAN )
试应用,对接企业邮接口

=cut

use strict;
use Encode;
use LWP::UserAgent;
use JSON;
use utf8;

our $VERSION = '1.10';
our @EXPORT = qw/ gettoken /;

=head1 FUNCTION

=head2 g
=$corpid&corpsecret=$corpsecret");
        if ($response->is_success) {
            return from_json($response->decoded_content,{utf8 => 1, allow_nonref => 1});
        }

    }
    return 0;
}
Mojo-HTTPStatus ( M/MA/MARGHI/Mojo-HTTPStatus-v0.0.2.tar.gz, MARGHI, 2019; MetaCPAN )
Mojo-HTTPStatus/lib/Mojo/HTTPStatus.pm ( view source; MetaCPAN )
  sub create {
        my $self = shift();

        my $body = ...;

        return $self->render(json => $body, status => CREATED);
    }

    sub another_action {
        my $self = shift();

      
QQ-exmail ( Y/YO/YOURSELF/QQ-exmail-1.10.zip, YOURSELF, 2019; MetaCPAN )
QQ-exmail/lib/QQ/exmail/service.pm ( view source; MetaCPAN )
点登录

=cut

use strict;
use base qw(QQ::exmail);
use Encode;
use LWP::UserAgent;
use JSON;
use utf8;

our $VERSION = '1.10';
our @EXPORT = qw/ get_login_url /;

=head1 FUNCTION

=
en=$access_token&userid=$userid");
        if ($response->is_success) {
            return from_json($response->decoded_content,{utf8 => 1, allow_nonref => 1});
        }

    }
    return 0;
}
QQ-exmail ( Y/YO/YOURSELF/QQ-exmail-1.10.zip, YOURSELF, 2019; MetaCPAN )
QQ-exmail/lib/QQ/exmail/group.pm ( view source; MetaCPAN )
件群组

=cut

use strict;
use base qw(QQ::exmail);
use Encode;
use LWP::UserAgent;
use JSON;
use utf8;

our $VERSION = '1.10';
our @EXPORT = qw/ create update delete get /;

=head1 FU

    if ( @_ && $_[0] && ref $_[1] eq 'HASH' ) {
        my $access_token = $_[0];
        my $json = $_[1];
        my $ua = LWP::UserAgent->new;
        $ua->timeout(30);
        $ua->env_prox
oken=$access_token",Content => to_json($json,{allow_nonref=>1}),Content_type =>'application/json');
        if ($response->is_success) {
            return from_json($response->decoded_content,{utf8
QQ-exmail ( Y/YO/YOURSELF/QQ-exmail-1.10.zip, YOURSELF, 2019; MetaCPAN )
QQ-exmail/lib/QQ/exmail/mail.pm ( view source; MetaCPAN )
件提醒

=cut

use strict;
use base qw(QQ::exmail);
use Encode;
use LWP::UserAgent;
use JSON;
use utf8;

our $VERSION = '1.10';
our @EXPORT = qw/ newcount /;

=head1 FUNCTION

=head2
 $_[2] eq 'HASH' ) {
        my $access_token = $_[0];
        my $userid = $_[1];
        my $json = $_[2];
        my $ua = LWP::UserAgent->new;
        $ua->timeout(30);
        $ua->env_prox
ken&userid=$userid",Content => to_json($json,{allow_nonref=>1}),Content_type =>'application/json');
        if ($response->is_success) {
            return from_json($response->decoded_content,{utf8
QQ-exmail ( Y/YO/YOURSELF/QQ-exmail-1.10.zip, YOURSELF, 2019; MetaCPAN )
QQ-exmail/lib/QQ/exmail/log.pm ( view source; MetaCPAN )
统日志

=cut

use strict;
use base qw(QQ::exmail);
use Encode;
use LWP::UserAgent;
use JSON;
use utf8;

our $VERSION = '1.10';
our @EXPORT = qw/ mailstatus mail login batchjob operation

    if ( @_ && $_[0] && ref $_[1] eq 'HASH' ) {
        my $access_token = $_[0];
        my $json = $_[1];
        my $ua = LWP::UserAgent->new;
        $ua->timeout(30);
        $ua->env_prox
oken=$access_token",Content => to_json($json,{allow_nonref=>1}),Content_type =>'application/json');
        if ($response->is_success) {
            return from_json($response->decoded_content,{utf8
App-Pods2Site ( K/KN/KNTH/App-Pods2Site-1.003.tar.gz, KNTH, 2019; MetaCPAN )
App-Pods2Site/lib/App/Pods2Site/Util.pm ( view source; MetaCPAN )
		readUTF8File
			expandAts
		);

use JSON;
use File::Basename;

my $FILE_SEP = $IS_WINDOWS ? '\\' : '/';
my $DATAFILE = '.pods2site';
my $JSON = JSON->new()->utf8()->pretty()->canonical();
AFILE");
	open (my $fh, '> :raw :bytes', $df) or die("Failed to open '$df': $!\n");
	print $fh $JSON->encode($allData);
	close($fh);  
}

sub readData
{
	my $dir = shift;
	my $section = shift
o read from '$df': $!\n") unless ($szRead && $szRead == $szExpected); 
		close($fh);
		$data = $JSON->decode($buf);
		$data = $data->{$section} if $section;
	}

	return $data;
}

sub createSp
Mojolicious-Plugin-Loco ( W/WR/WROG/Mojolicious-Plugin-Loco-0.008.tar.gz, WROG, 2019; MetaCPAN )
Mojolicious-Plugin-Loco/lib/Mojolicious/Plugin/Loco.pm ( view source; MetaCPAN )
    # . $c->validation->csrf_token . "\n";
                return $c->render(
                    json    => { error => 'unexpected origin' },
                    status  => 400,
                    m
           );
            }
            _reset_timer($conf->{final_wait});
            $c->render(json => { h => ++$hcount });

            #    return $c->helpers->reply->not_found()
            #   

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