Group
Extension

Matches 35358

LINE-Bot-API ( G/GU/GUGOD/LINE-Bot-API-1.21.tar.gz, GUGOD, 2024; MetaCPAN )
LINE-Bot-API/lib/LINE/Bot/API/Builder/FlexMessage.pm ( view source; MetaCPAN )
json` attribute is required" unless defined $args{json};
    return bless { _json => $args{json} }, $class;
}

sub build {
    my ($self) = @_;
    return $self->{_build} //= decode_json($self->{_json
r::FlexMessage

=head1 SYNOPSIS

    my $message = LINE::Bot::API::Builder::FlexMessage->new( json => $json_text );

    $bot->push_message( $user_id, $message->build );

=head1 DESCRIPTION

This modu
.line.biz/console/fx/> to an object.

Structurally, a flex message is represented as an object in JSON with
smaller components. Here's an minimal example:

    {
      "type": "flex",
      "altText":
SignalWire-ML ( B/BW/BWEST/SignalWire-ML-1.22.tar.gz, BWEST, 2024; MetaCPAN )
SignalWire-ML/lib/SignalWire/ML.pm ( view source; MetaCPAN )
package SignalWire::ML;

use strict;
use warnings;
use JSON;
use YAML::PP qw( Dump );

our $VERSION = '1.22';

sub new {
    my ($class, $args) = @_;
    my $self = {
        _content => {
           
g_response_json {
    my ($self, $response) = @_;
    return JSON->new->pretty->utf8->encode($response);
}

sub render {
    my ($self) = @_;
    return $self->{_content};
}

sub render_json {
    my 
($self) = @_;
    return JSON->new->pretty->utf8->encode($self->{_content});
}

sub render_yaml {
    my ($self) = @_;
    return Dump $self->{_content};
}

1;

__END__

=encoding utf8

=head1 NAME

S
LINE-Bot-API ( G/GU/GUGOD/LINE-Bot-API-1.21.tar.gz, GUGOD, 2024; MetaCPAN )
LINE-Bot-API/lib/LINE/Bot/API/Event.pm ( view source; MetaCPAN )
CARP_NOT = qw( LINE::Bot::API::Event LINE::Bot::API);

use Digest::SHA 'hmac_sha256';
use JSON::XS 'decode_json';
use MIME::Base64 'decode_base64';

use LINE::Bot::API::Event::Message;
use LINE::Bot::
API::Event::VideoViewingComplete',
);

sub parse_events_json {
    my($self, $json) = @_;
    my $events = [];

    my $data = decode_json $json;
    for my $event_data (@{ $data->{events} }) {
      
e_signature {
    my($class, $json, $channel_secret, $signature) = @_;
    return unless $signature && $json && $channel_secret;
    my $json_signature = hmac_sha256($json, $channel_secret);
    _secu
Generate ( J/JA/JANESKIL/Tools/Generate-0.03.tar.gz, JANESKIL, 2024; MetaCPAN )
Generate/lib/Generate/Sql/Table/Fields.pm ( view source; MetaCPAN )
Fields -- create the fields part of a create table script
#
# SYNOPSIS
# ========
#     my $json = from_json( qq (
#         {
#             "fields": {
#                 "userid": "varchar",
#       
plates'
#       );
#
#       my $fields = GenerateSQL::Sql::Table::Fields->new(
#           json     => $json,
#           template => $template,
#       );
#
#       $fields->create_fields();
#      
fields->sql;
#
# METHODS
# =======
#       create_fields() Create the SQL for field creation from JSON
#       get_defaults($datatype) Get defaults part for the sql datatype
#
#
#

class Generate::Sql
Generate ( J/JA/JANESKIL/Tools/Generate-0.03.tar.gz, JANESKIL, 2024; MetaCPAN )
Generate/lib/Generate/Sql/Table/Sql.pm ( view source; MetaCPAN )
";
        my $json = $self->json->{sql};
        my $length = scalar @{$json};
        for (my $i = 0; $i < $length; $i++) {
            my $type = $self->template->get_section(@{$json}[$i]->{type});
ablename/ig;
                    $template =~ s/<<fields>>/@{$json}[$i]->{fields}/ig;
                    $template =~ s/<<values>>/@{$json}[$i]->{values}/ig;
                }
                default
Generate ( J/JA/JANESKIL/Tools/Generate-0.03.tar.gz, JANESKIL, 2024; MetaCPAN )
Generate/lib/Generate/Sql/Table/Index.pm ( view source; MetaCPAN )
 = "";

    method create_index {
        my $sql = "";
        my $json = $self->json->{index};
        my $length = scalar @{$json};
        for (my $i = 0; $i < $length; $i++) {
            my $tem
pe>>/@{$json}[$i]->{type}/ig;
            $template =~ s/<<fields>>/@{$json}[$i]->{fields}/ig;
            @{$json}[$i]->{fields} =~ s/,/_/ig;
            $template =~ s/<<field_names>>/@{$json}[$i]->
note ( T/TL/TLINDEN/note-1.4.2.tar.gz, TLINDEN, 2024; MetaCPAN )
note/note.pod ( view source; MetaCPAN )
file>. If <file> is a "-" it will 
be printed out to standard output (STDOUT).

=item I<-j --json>

Use JSON format for exports created using -D. The importer determines
the format to be used automati
Generate ( J/JA/JANESKIL/Tools/Generate-0.03.tar.gz, JANESKIL, 2024; MetaCPAN )
Generate/lib/Generate/Sql/Base/Common.pm ( view source; MetaCPAN )
ature 'class';
no warnings 'experimental::class';

class Generate::Sql::Base::Common {
    field $json :param :reader;
    field $template :param :reader;
    field $sql :reader;
    field $index = 0;
Generate ( J/JA/JANESKIL/Tools/Generate-0.03.tar.gz, JANESKIL, 2024; MetaCPAN )
Generate/lib/Generate/Sql/Table/ForeignKey.pm ( view source; MetaCPAN )
key} = "";
        $templates->{template_ind} = "";
        try {
            my $fields = $self->json->{fields};
            foreach my $key (sort keys %{$fields}) {
                if (index($key,'_
Generate ( J/JA/JANESKIL/Tools/Generate-0.03.tar.gz, JANESKIL, 2024; MetaCPAN )
Generate/lib/Generate/Test/TestData.pm ( view source; MetaCPAN )
TABLE users;
DROP TABLE company_type;
DROP TABLE companies;
DROP TABLE companies_users;

@@ users.json


  {
           "tables": [
          {
             "table": {
              "name": "users",
 
Ryu ( T/TE/TEAM/Ryu-4.001.tar.gz, TEAM, 2024; MetaCPAN )
Ryu/lib/Ryu/Source.pm ( view source; MetaCPAN )
de::encode_utf8($_)
        }
    },
    json => sub {
        require JSON::MaybeXS;
        my $json = JSON::MaybeXS->new(@_);
        sub {
            $json->encode($_)
        }
    },
    csv =>
, Encode::FB_QUIET)
        }
    },
    json => sub {
        require JSON::MaybeXS;
        my $json = JSON::MaybeXS->new(@_);
        sub {
            $json->decode($_)
        }
    },
    csv =>
er to use, the remainder are
used as options for the selected encoder.

Examples:

 $src->encode('json')
 $src->encode('utf8')
 $src->encode('base64')

=cut

sub encode {
    my ($self, $type) = splic
Ryu ( T/TE/TEAM/Ryu-4.001.tar.gz, TEAM, 2024; MetaCPAN )
Ryu/lib/Ryu/Source.pod ( view source; MetaCPAN )
er to use, the remainder are
used as options for the selected encoder.

Examples:

 $src->encode('json')
 $src->encode('utf8')
 $src->encode('base64')

=head2 decode

Passes each item through a decode
er to use, the remainder are
used as options for the selected decoder.

Examples:

 $src->decode('json')
 $src->decode('utf8')
 $src->decode('base64')

=head2 print

Shortcut for C<< ->each(sub { prin
Web-Async ( T/TE/TEAM/Web-Async-0.006.tar.gz, TEAM, 2024; MetaCPAN )
Web-Async/lib/Web/Async/WebSocket/Server/Connection.pm ( view source; MetaCPAN )
 $hdr = await $self->read_headers();

        $log->tracef('url = %s, headers = %s', $url, format_json_text($hdr));

        # We rely on the caller to tell us the scheme, defaulting to plain `ws`,
  
Beam-Wire ( P/PR/PREACTION/Beam-Wire-1.026.tar.gz, PREACTION, 2024; MetaCPAN )
Beam-Wire/lib/Beam/Wire/Help/Config.pod ( view source; MetaCPAN )
nfig service, use the C<config> key. The value is the path
to the file to read. By default, YAML, JSON, XML, and Perl files are
supported (via L<Config::Any>).

This works very much like a C<value> se
Webservice-InternetDB-API ( H/HA/HAX/Webservice-InternetDB-API-1.005.tar.gz, HAX, 2024; MetaCPAN )
Webservice-InternetDB-API/lib/Webservice/InternetDB/API.pm ( view source; MetaCPAN )
l::signatures';

our $VERSION = '1.005';

class Webservice::InternetDB::API;

use HTTP::Tiny;
use JSON::PP;
use Carp;

field $ua = HTTP::Tiny->new(timeout => 7);
field $base = "https://internetdb.shod
success}  ){

        if( $response->{'headers'}{'content-type'} =~ /json/ ){

            croak $response->{status}." ".decode_json($response->{content})->{detail} ;

        }else{

            croa
atus}." ".$response->{content} ;
        }

    }

    try{
        $response->{content} = decode_json($response->{content});
    }catch($e){
        croak "unable to decode message from API ".$e;
   
Webservice-Ipify-API ( H/HA/HAX/Webservice-Ipify-API-1.005.tar.gz, HAX, 2024; MetaCPAN )
Webservice-Ipify-API/lib/Webservice/Ipify/API.pm ( view source; MetaCPAN )
:signatures';

our $VERSION = '1.005';


class Webservice::Ipify::API 1.004;

use HTTP::Tiny;
use JSON::PP;
use Carp;

my $ua  = HTTP::Tiny->new(timeout => 7);


method get_ipv4(){
    return fetch('h
Intellexer-API ( H/HA/HAX/Intellexer-API-0.92.tar.gz, HAX, 2024; MetaCPAN )
Intellexer-API/lib/Intellexer/API.pm ( view source; MetaCPAN )
API;

use v5.36;
use LWP::UserAgent;
use Path::Tiny;
use URI;
use Carp;
use JSON;


our $VERSION = q{0.92};

my $json = JSON->new()->pretty(1);
my $ua   = LWP::UserAgent->new();

sub new($package, $ap
       $ua->post(
            $uri_obj,
            'Content-Type' => 'application/json',
            Content => $json->encode($reviews)
        )
    );
}

sub sentimentAnalyzerOntologies($self){
   
       $ua->post(
            $uri_obj,
            'content-type' => 'application/json',
            Content => $json->encode($url_list),
        )
    );

}

## Comparator
sub compareText($self, $te
Webservice-CVEDB-API ( H/HA/HAX/Webservice-CVEDB-API-1.001.tar.gz, HAX, 2024; MetaCPAN )
Webservice-CVEDB-API/lib/Webservice/CVEDB/API.pm ( view source; MetaCPAN )
ss';
no warnings 'experimental::class';

class Webservice::CVEDB::API 1.001;

use HTTP::Tiny;
use JSON::PP;
use Carp;

field $ua   :reader = HTTP::Tiny->new(timeout => 7);
field $base :reader = 'https

    if (! $response->{success}){
        my %error;
        try{
            my $detail = decode_json($response->{content}) or croak "$!";
            $error{detail} = $detail->{detail}."\n";
       
uccess};
        }

        return \%error;
    }

    try{
        $response->{content} = decode_json($response->{content});
    }catch($e){
        croak "unable to decode message from API \n".$e;
 
WWW-Mechanize-PhantomJS ( C/CO/CORION/WWW-Mechanize-PhantomJS-0.25.tar.gz, CORION, 2024; MetaCPAN )
WWW-Mechanize-PhantomJS/lib/WWW/Mechanize/PhantomJS.pm ( view source; MetaCPAN )
et {
    my ($self, $url, %options ) = @_;
    # We need to stringify $url so it can pass through JSON
    my $phantom_res= $self->driver->get( "$url" );
    $self->post_process;

    $self->update_re
ge.plainText
# var page = require('webpage').create();
# page.open('http://somejsonpage.com', function () {
#     var jsonSource = page.plainText;
sub decoded_content {
    $_[0]->driver->get_page_sou
bject and not
a L<HTML::Form> instance.

The current form will be reset by WWW::Mechanize::PhantomJS
on calls to C<< ->get() >> and C<< ->get_local() >>,
and on calls to C<< ->submit() >> and C<< ->su
Shell-Var-Reader ( V/VV/VVELOX/Shell-Var-Reader-0.10.0.tar.gz, VVELOX, 2024; MetaCPAN )
Shell-Var-Reader/lib/Shell/Var/Reader/CMDB.pm ( view source; MetaCPAN )
tem_groups = grep {
			   -d $_
			&& !-f "$_/.not_a_system_group"
			&& $_ !~ /^\./
			&& $_ ne 'json_confs'
			&& $_ ne 'shell_confs'
			&& $_ ne 'toml_confs'
			&& $_ ne 'yaml_confs'
			&& $_ ne 'c
 CMDB.

Specifically named directories.

    - cmdb :: The TOML CMDB directory.
    - json_confs :: Generated JSON confs.
    - shell_confs :: Generated shell confs.
    - toml_confs :: Generated TOML

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