Group
Extension

Matches 35359

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
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

  $
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/StatusEvent.pm ( view source; MetaCPAN )
nt;

use strict;
use warnings;
use base 'Armadito::Prelude::HTTP::Client::ArmaditoAV::Event';
use JSON;
use Data::Dumper;
use Armadito::Prelude::IDMEF qw( setAnalyzer setClassification setTarget setAs
Mango-BSON-Dump ( F/FE/FERREIRA/Mango-BSON-Dump-0.2.tar.gz, FERREIRA, 2016; MetaCPAN )
Mango-BSON-Dump/lib/Mango/BSON/Dump.pm ( view source; MetaCPAN )
 Mango BSON documents as Extended JSON

use 5.010;
use Mojo::Base -strict;

use Mango::BSON ();
use Mojo::Util  ();
use re          ();    # regexp_pattern()
use JSON::XS    ();

use Exporter 5.57 'im
port';
our @EXPORT_OK = qw(to_extjson);

sub to_extjson {
    my $doc = shift;
    state $encoder = JSON::XS->new->convert_blessed(1);
    my %opts = (pretty=>0,@_);
    $encoder->$_($opts{$_}) for qw
ngo::BSON::BINARY_UUID(),
    'user_defined' => Mango::BSON::BINARY_USER_DEFINED(),
);

my %TO_EXTJSON = (

    # bson_bin
    'Mango::BSON::Binary' => sub {
        my $bindata = Mojo::Util::b64_enco
BrowserStack-Local ( B/BS/BSTACK/BrowserStack-Local-1.0.0.tar.gz, BSTACK, 2016; MetaCPAN )
BrowserStack-Local/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 {
Conductrics-Agent ( F/FE/FERZ/Conductrics-Agent-0.004.tar.gz, FERZ, 2016; MetaCPAN )
Conductrics-Agent/lib/Conductrics/Agent.pm ( view source; MetaCPAN )
MooseX::Types::Moose qw( Str );
use MooseX::Types::URI qw(Uri);
use URI;
use URI::QueryParam;
use JSON::MaybeXS;
use Time::HiRes;
use LWP::UserAgent;
use Data::Dumper;

our $VERSION = '0.004';
$VERSIO
essage;
	    warn "Something get wrong on response";
	    warn Dumper($response);
	}

	JSON::MaybeXS::decode_json($response->decoded_content);
    } else {
	warn "Content: ", $response->decoded_conten
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
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) = @_;

  #
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/JSON.pod ( view source; MetaCPAN )
==========================
## NAME
=pod

=head1 NAME

Tie::File::Indexed::JSON - tied array access to indexed data files: JSON-encoded data structures

=cut

##========================================
================
## SYNOPSIS
=pod

=head1 SYNOPSIS

 use Tie::File::Indexed::JSON;
 tie(my @data, 'Tie::File::Indexed::JSON', $filename, %options) or die ...
 
 $data[0] = {foo=>'bar'}; # transparentl
1 DESCRIPTION

Tie::File::Indexed::JSON provides a
L<Tie::File::Indexed|Tie::File::Indexed> subclass for
storing arrays of perl data structures encoded using the JSON module.

=cut

##----------------
Google-ProtocolBuffers ( S/SA/SAXJAZMAN/protobuf/Google-ProtocolBuffers-0.12.tar.gz, SAXJAZMAN, 2016; MetaCPAN )
Google-ProtocolBuffers/lib/Google/ProtocolBuffers.pm ( view source; MetaCPAN )
ift L<http://developers.facebook.com/thrift/>

ASN.1 L<http://en.wikipedia.org/wiki/ASN.1>, 
L<JSON> and L<YAML>

=head1 AUTHOR, ACKNOWLEDGEMENS, COPYRIGHT

Author: Igor Gariev <gariev@hotmail.
Plack-Middleware-ServerStatus-Lite ( K/KA/KAZEBURO/Plack-Middleware-ServerStatus-Lite-0.36.tar.gz, KAZEBURO, 2016; MetaCPAN )
Plack-Middleware-ServerStatus-Lite/lib/Plack/Middleware/ServerStatus/Lite.pm ( view source; MetaCPAN )
::Scoreboard;
use Net::CIDR::Lite;
use Try::Tiny;
use JSON;
use Fcntl qw(:DEFAULT :flock);
use IO::Handle;

our $VERSION = '0.36';

my $JSON = JSON->new->utf8(0);

sub prepare_app {
    my $self = shi
SERVER_PROTOCOL},
            time => time(),
        };
    }
    $self->{__scoreboard}->update($JSON->encode({
        %{$prev},
        pid => $$,
        ppid => getppid(),
        uptime => $self
      for my $pid ( @all_workers  ) {
            my $json = $stats->{$pid};
            my $pstatus = eval { 
                $JSON->decode($json || '{}');
            };
            $pstatus ||= {};
WebService-HackerNews ( N/NE/NEILB/WebService-HackerNews-0.05.tar.gz, NEILB, 2016; MetaCPAN )
WebService-HackerNews/lib/WebService/HackerNews.pm ( view source; MetaCPAN )
WebService::HackerNews;
$WebService::HackerNews::VERSION = '0.05';
use 5.006;
use Moo;
use JSON qw(decode_json);

use WebService::HackerNews::Item;
use WebService::HackerNews::User;

has ua => (
    i
a hack. Can I use JSON->allow_nonref to handle
    # the fact that maxitem returns an int rather than [ int ]?
    return $response->{content} =~ m!^\s*[{[]!
           ? decode_json($response->{conte
result = $self->$get('topstories.json');

    return @$result;
}

sub item
{
    my $self   = shift;
    my $id     = shift;
    my $result = $self->$get("item/$id.json");

    return WebService::Hack
Tie-File-Indexed ( M/MO/MOOCOW/Tie-File-Indexed-0.09.tar.gz, MOOCOW, 2016; MetaCPAN )
Tie-File-Indexed/Indexed/FreezeN.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<
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
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,
         
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
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 }
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
Minion-Command-minion-jobx ( B/BF/BFAIST/Minion-Command-minion-jobx-0.05.tar.gz, BFAIST, 2016; MetaCPAN )
Minion-Command-minion-jobx/lib/Minion/Command/minion/jobx.pm ( view source; MetaCPAN )

use Getopt::Long qw/GetOptionsFromArray :config no_auto_abbrev no_ignore_case/;
use Mojo::JSON qw/decode_json/;
use Mojo::Util qw/dumper tablify/;

our $VERSION = '0.05';

has description => 'Manage 
        'A|attempts=i'  => \$options->{attempts},
        'a|args=s'      => sub { $args = decode_json($_[1]) },
        'b|broadcast=s' => (\my $command),
        'd|delay=i'     => \$options->{delay
 be
                                attempted, defaults to 1
      -a, --args <JSON array>   Arguments for new job in JSON format
      -d, --delay <seconds>     Delay new job for this many seconds
  

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