Group
Extension

Matches 35358

Mojo-Sendgrid ( S/SA/SADAMS/Mojo-Sendgrid-0.05.tar.gz, SADAMS, 2016; MetaCPAN )
Mojo-Sendgrid/lib/Mojo/Sendgrid/Mail.pm ( view source; MetaCPAN )
headers

A collection of key/value pairs in JSON format.

=head2 x_smtpapi

Please review the SMTP API to view documentation on what you can do with the
JSON headers.

=head1 METHODS

=head2 send

  $
HTTP-Throwable-JSONFactory ( W/WO/WOLFSAGE/HTTP-Throwable-JSONFactory-0.002.tar.gz, WOLFSAGE, 2016; MetaCPAN )
HTTP-Throwable-JSONFactory/lib/HTTP/Throwable/JSONFactory.pm ( view source; MetaCPAN )
package HTTP::Throwable::JSONFactory;
# ABSTRACT: Throw exceptions with JSON bodies
$HTTP::Throwable::JSONFactory::VERSION = '0.002';
use strict;
use warnings;

use parent qw(HTTP::Throwable::Factory)
:JSONBody
  );
}

1;

=pod

=encoding UTF-8

=head1 NAME

HTTP::Throwable::JSONFactory - Throw exceptions with JSON bodies

=head1 VERSION

version 0.002

=head1 SYNOPSIS

  use HTTP::Throwable::JSONF
e L<HTTP::Throwable::Role::JSONBody> role, which
will generate HTTP responses with an C<application/json> content type and
encode the (optional) provided payload using L<JSON::MaybeXS>.

The C<payload
DBIx-Class-Visualizer ( C/CS/CSSON/DBIx-Class-Visualizer-0.0200.tar.gz, CSSON, 2016; MetaCPAN )
DBIx-Class-Visualizer/lib/DBIx/Class/Visualizer/Relation.pm ( view source; MetaCPAN )
            :                                       qw/dot dot dot/
                  ;
}

sub TO_JSON {
    my $self = shift;

    return +{
            origin_table => $self->origin_table,
         
Mojo-Sendgrid ( S/SA/SADAMS/Mojo-Sendgrid-0.05.tar.gz, SADAMS, 2016; MetaCPAN )
Mojo-Sendgrid/lib/Mojolicious/Command/sendgrid/mail/send.pm ( view source; MetaCPAN )
age Mojolicious::Command::sendgrid::mail::send;
use Mojo::Base 'Mojolicious::Command';

use Mojo::JSON 'j';
use Mojo::Sendgrid;

use Data::Dumper;
use Getopt::Long qw(GetOptionsFromArray :config no_au
$self->sendgrid->mail(to=>$to,from=>$from,subject=>$subject,text=>join("\n",<STDIN>))->send->res->json;
}

1;

=encoding utf8

=head1 NAME

Mojolicious::Command::sendgrid::mail::send - Send command of
email

=head1 DESCRIPTION

L<Mojolicious::Command::sendgrid::mail::send> sends emails.
Prints the json response to STDOUT.

=head1 ATTRIBUTES

L<Mojolicious::Command::sendgrid::mail::send> inherits al
BrowserStack-Local ( B/BS/BSTACK/BrowserStack-Local-1.0.0.tar.gz, BSTACK, 2016; MetaCPAN )
BrowserStack-Local/blib/lib/BrowserStack/Local.pm ( view source; MetaCPAN )
emp;
use Config;
use Cwd;
use File::Temp qw(tempdir);
use File::Path qw(make_path);
use JSON::Parse qw(parse_json);

require Exporter;

our @ISA = qw(Exporter);

our %EXPORT_TAGS = ( 'all' => [ qw(
  
pcode} = "start";
  my $command = $self->command();
  
  my $out = `$command`;
  my $data = parse_json ($out);

  if ($data->{state} != "connected"){
    die $data->{message}->{message};
  }
  else {
HTTP-Throwable-JSONFactory ( W/WO/WOLFSAGE/HTTP-Throwable-JSONFactory-0.002.tar.gz, WOLFSAGE, 2016; MetaCPAN )
HTTP-Throwable-JSONFactory/lib/HTTP/Throwable/Role/JSONBody.pm ( view source; MetaCPAN )
package HTTP::Throwable::Role::JSONBody;
# ABSTRACT - JSON Body
$HTTP::Throwable::Role::JSONBody::VERSION = '0.002';
use Moo::Role;
use JSON::MaybeXS;

has payload => (
  is => 'ro',
);

sub body {
  
json with empty
  # body
  return "{}" unless $self->payload;

  return encode_json($self->payload);
}

sub body_headers {
  my ($self, $body) = @_;

  return [
    'Content-Type' => 'application/json
::Role::JSONBody

=head1 VERSION

version 0.002

=head1 OVERVIEW

This role does two things - accepts an optional C<payload> argument that
should be anything you can pass to L<JSON/"encode_json">, and
Armadito-Prelude ( V/VH/VHAMON/Armadito-Prelude-0.0.4_01.tar.gz, VHAMON, 2016; MetaCPAN )
Armadito-Prelude/lib/Armadito/Prelude/HTTP/Client/ArmaditoAV/Event/OnDemandCompletedEvent.pm ( view source; MetaCPAN )
t;

use strict;
use warnings;
use base 'Armadito::Prelude::HTTP::Client::ArmaditoAV::Event';

use JSON;
use Armadito::Prelude::Tools::Security qw(isANumber);

sub new {
	my ( $class, %params ) = @_;

Tie-File-Indexed ( M/MO/MOOCOW/Tie-File-Indexed-0.09.tar.gz, MOOCOW, 2016; MetaCPAN )
Tie-File-Indexed/Indexed.pm ( view source; MetaCPAN )
exed data files

package Tie::File::Indexed;
use 5.10.0; ##-- for // operator
use Tie::Array;
use JSON qw();
use Fcntl qw(:DEFAULT :seek :flock);
use File::Copy qw();
use IO::File;
use Carp qw(confess
: JSON

## $data = CLASS->loadJsonString( $string,%opts)
## $data = CLASS->loadJsonString(\$string,%opts)
##  + %opts passed to JSON::from_json(), e.g. (relaxed=>0)
##  + supports $opts{json} = $json_
obj
sub loadJsonString {
  my $that = UNIVERSAL::isa($_[0],__PACKAGE__) ? shift : __PACKAGE__;
  my $bufr = ref($_[0]) ? $_[0] : \$_[0];
  my %opts = @_[1..$#_];
  return $opts{json}->decode($$bufr) i
Armadito-Prelude ( V/VH/VHAMON/Armadito-Prelude-0.0.4_01.tar.gz, VHAMON, 2016; MetaCPAN )
Armadito-Prelude/lib/Armadito/Prelude/HTTP/Client/ArmaditoAV.pm ( view source; MetaCPAN )
n qw{ POST };
use UNIVERSAL::require;
use URI;
use Encode;
use Data::Dumper;
use URI::Escape;
use JSON;

use Armadito::Prelude::HTTP::Client::ArmaditoAV::Event;
use Armadito::Prelude::HTTP::Client::Ar
adito-prelude',
		'Referer'    => $url
	);

	$headers->header( 'Content-Type'     => 'application/json' ) if ( $params{method} eq 'POST' );
	$headers->header( 'X-Armadito-Token' => $self->{token} )   
{
	my ( $self, $response ) = @_;

	$self->{logger}->info( $response->content() );
	my $obj = from_json( $response->content(), { utf8 => 1 } );

	if ( defined( $obj->{token} ) ) {
		$self->{token} = $o
Tie-File-Indexed ( M/MO/MOOCOW/Tie-File-Indexed-0.09.tar.gz, MOOCOW, 2016; MetaCPAN )
Tie-File-Indexed/Indexed/Freeze.pod ( view source; MetaCPAN )
::Indexed
base class.

=head2 In-place item modification not supported

See L<Tie::File::Indexed::JSON/"In-place item modification not supported"> for details.

=head2 Limited datatype support

See L<
Dist-Zilla-Plugin-ChangeStats-Dependencies-Git ( C/CS/CSSON/Dist-Zilla-Plugin-ChangeStats-Dependencies-Git-0.0200.tar.gz, CSSON, 2016; MetaCPAN )
Dist-Zilla-Plugin-ChangeStats-Dependencies-Git/lib/Dist/Zilla/Plugin/ChangeStats/Dependencies/Git.pm ( view source; MetaCPAN )
file;
use Path::Tiny;
use Try::Tiny;
use CPAN::Changes;
use CPAN::Changes::Group;
use JSON::MaybeXS qw/decode_json/;

with qw/
    Dist::Zilla::Role::Plugin
    Dist::Zilla::Role::FileMunger
/;

sub m
 if(!path('META.json')->exists) {
        $self->log(['Could not find META.json in distribution root - skips']);
        return;
    }
    my $current_meta = decode_json(path('META.json')->slurp)->{'p
lf->repo->run('show', join ':' => ($tag, 'META.json'));
    }
    catch {
        if($_ =~ m{^fatal:}) {
            $self->log(['Could not find META.json in %s - skipping', $tag]);
        }
        
DBIx-Class-Visualizer ( C/CS/CSSON/DBIx-Class-Visualizer-0.0200.tar.gz, CSSON, 2016; MetaCPAN )
DBIx-Class-Visualizer/lib/DBIx/Class/Visualizer/Column.pm ( view source; MetaCPAN )
lumn_name_tag;
}

sub TO_JSON {
    my $self = shift;

    return +{
        name => $self->name,
        data_type => $self->data_type,
        relations => [map { $_->TO_JSON } @{ $self->relations }
Valence ( F/FR/FRACTAL/Valence-0.201.tar.gz, FRACTAL, 2016; MetaCPAN )
Valence/lib/Valence.pm ( view source; MetaCPAN )
 common::sense;

use AnyEvent;
use AnyEvent::Util;
use AnyEvent::Handle;
use Callback::Frame;
use JSON::XS;
use File::Spec;
use File::ShareDir;

use Alien::Electron;
use Valence::Object;


our $VERSIO
ndler = sub {
    my ($hdl, $line) = @_;

    my $msg = eval { decode_json($line) };

    if ($@) {
      warn "error decoding JSON from electron: $@: $line";
    } else {
      debug(1, sub { "<<<<<<
;

  debug(1, sub { "Sending to electron >>>>>>>>>>>>>>>>>" }, $msg);

  $self->{hdl}->push_write(json => $msg);

  $self->{hdl}->push_write("\n");
}


sub _call_method {
  my ($self, $msg) = @_;

  #
DBIx-Class-Visualizer ( C/CS/CSSON/DBIx-Class-Visualizer-0.0200.tar.gz, CSSON, 2016; MetaCPAN )
DBIx-Class-Visualizer/lib/DBIx/Class/Visualizer.pm ( view source; MetaCPAN )
w/ArrayRef RegexpRef Maybe HashRef InstanceOf Bool/;
use Syntax::Keyword::Gather;
use JSON::MaybeXS qw/encode_json/;
use PerlX::Maybe;
use DBIx::Class::Visualizer::ResultHandler;

has logger_conf => (
. '-' . $column_name);

            $el->attr('data-column-info', encode_json($result_handler->get_column($column_name)->TO_JSON));
        });

        # There might be a tiny <polygon.table-name> on
       ...
            ],
          }">a_column_id</text>

The C<data-column-info> attribute is a json object that is directly usable by something like jQuery:

    # has_many
    $('#column-TableName
Captcha-reCaptcha ( S/SU/SUNNYP/Captcha-reCaptcha-0.99.tar.gz, SUNNYP, 2016; MetaCPAN )
Captcha-reCaptcha/lib/Captcha/reCAPTCHA.pm ( view source; MetaCPAN )
 { type => 'text/javascript' },
    "\n//<![CDATA[\n"
     . "var RecaptchaOptions = "
     . $h->json_encode( $options )
     . ";\n//]]>\n"
  ) . "\n";
}

=item C<< get_options_setter_div( $pubkey, 
Tie-File-Indexed ( M/MO/MOOCOW/Tie-File-Indexed-0.09.tar.gz, MOOCOW, 2016; MetaCPAN )
Tie-File-Indexed/Indexed.pod ( view source; MetaCPAN )
parent encoding/decoding of UTF8-encoded strings,
and complex data structures encoded via the L<JSON|JSON> or L<Storable|Storable>
modules. See L</SUBCLASSES> for details.

=cut

##-------------------
 between incompatible file formats
(e.g. Storable and JSON), but it should be faster than array assignment:

 tie(my @a, 'Tie::File::Indexed::JSON',     'a.tfx');
 tie(my @b, 'Tie::File::Indexed::Stor
                                       # ... but this ought to

 tie(my @a2, 'Tie::File::Indexed::JSON', 'a2.tfx');
 @a2 = @a;                                                # slow element-wise copy
 
Mojo-Sendgrid ( S/SA/SADAMS/Mojo-Sendgrid-0.05.tar.gz, SADAMS, 2016; MetaCPAN )
Mojo-Sendgrid/lib/Mojo/Sendgrid.pm ( view source; MetaCPAN )
 missing" };
has apiurl => sub { $ENV{SENDGRID_APIURL} || 'https://api.sendgrid.com/api/mail.send.json' };

sub mail { Mojo::Sendgrid::Mail->new(sendgrid => shift, @_) }

1;

=encoding utf8

=head1 NA
Tie-File-Indexed ( M/MO/MOOCOW/Tie-File-Indexed-0.09.tar.gz, MOOCOW, 2016; MetaCPAN )
Tie-File-Indexed/Indexed/StorableN.pod ( view source; MetaCPAN )
::Indexed
base class.

=head2 In-place item modification not supported

See L<Tie::File::Indexed::JSON/"In-place item modification not supported"> for details.

=head2 Limited datatype support

See L<
Tie-File-Indexed ( M/MO/MOOCOW/Tie-File-Indexed-0.09.tar.gz, MOOCOW, 2016; MetaCPAN )
Tie-File-Indexed/Indexed/Storable.pod ( view source; MetaCPAN )
::Indexed
base class.

=head2 In-place item modification not supported

See L<Tie::File::Indexed::JSON/"In-place item modification not supported"> for details.

=head2 Limited datatype support

Only r
DR-Msgpuck ( U/UN/UNERA/DR-Msgpuck-0.04.tar.gz, UNERA, 2016; MetaCPAN )
DR-Msgpuck/msgpuck.h ( view source; MetaCPAN )
t data_size, const char *format, va_list args);

/**
 * \brief print to \a file msgpacked data in JSON format.
 * MP_EXT is printed as "EXT" only
 * \param file - pointer to file (or NULL for stdout)

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