Group
Extension

Matches 35358

PDL-OpenCV ( E/ET/ETJ/PDL-OpenCV-0.001.tar.gz, ETJ, 2023; MetaCPAN )
PDL-OpenCV/classes.pl ( view source; MetaCPAN )
thm interface:
@snippet snippets/core_various.cpp Algorithm'],
['FileStorage',[],'@brief XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or
reading data to
WebService-Tuya-IoT-API ( M/MR/MRDVT/WebService-Tuya-IoT-API-0.03.tar.gz, MRDVT, 2023; MetaCPAN )
WebService-Tuya-IoT-API/lib/WebService/Tuya/IoT/API.pm ( view source; MetaCPAN )
ings;
require Data::Dumper;
require Time::HiRes;
require Digest::SHA;
require Data::UUID;
require JSON::XS;
require HTTP::Tiny;
use List::Util qw{first}; #import required

our $VERSION = '0.03';
our $
n $self->{'_debug'};
}

=head1 METHODS

=head2 api

Calls the Tuya IoT API and returns the parsed JSON data structure.  This method automatically handles access token and web request signatures.

  my
 my $content          = defined($input) ? JSON::XS::encode_json($input) : '';                                     #Note: empty string stringifies to "" in JSON
  my $is_token         = $api_destinatio
PDL-OpenCV ( E/ET/ETJ/PDL-OpenCV-0.001.tar.gz, ETJ, 2023; MetaCPAN )
PDL-OpenCV/funclist.pl ( view source; MetaCPAN )
ring to read the data from.
     Extension of the file (.xml, .yml/.yaml or .json) determines its format (XML, YAML or JSON
     respectively). Also you can append .gz to work with compressed files, f
.). A file name can also contain parameters.
     You can use this format, "*?base64" (e.g. "file.json?base64" (case sensitive)), as an alternative to
     FileStorage::BASE64 flag.
     @param flags 
App-ListNewCPANDists ( P/PE/PERLANCAR/App-ListNewCPANDists-0.023.tar.gz, PERLANCAR, 2023; MetaCPAN )
App-ListNewCPANDists/lib/App/ListNewCPANDists.pm ( view source; MetaCPAN )
['category:time-filtering'],
    },
);

sub _json_encode {
    require JSON;
    JSON->new->encode($_[0]);
}

sub _json_decode {
    require JSON;
    JSON->new->decode($_[0]);
}

sub _create_schema {
App-Filite-Client ( T/TO/TOBYINK/App-Filite-Client-0.001001.tar.gz, TOBYINK, 2023; MetaCPAN )
App-Filite-Client/lib/App/Filite/Client.pm ( view source; MetaCPAN )
t::Long qw( GetOptionsFromArray );
use HTTP::Tiny;
use HTTP::Tiny::Multipart;
use JSON::PP qw( encode_json decode_json );
use MIME::Base64 qw( encode_base64 );
use Path::Tiny qw( path );

use Class::T
( 'config.json' );
	if ( not ref $config_file ) {
		$config_file = path( $config_file );
	}
	croak "Expected config file: $config_file" unless $config_file->is_file;
	
	my $args = decode_json( $config

		local $/;
		$content = <STDIN>;
	}
	else {
		$content = path( $file )->slurp;
	}
	
	my $json = encode_json( {
		contents   => $content,
		highlight  => $opts->{highlight} ? \1 : \0,
	} );
	
	my $en
Museum-TePapa ( R/RS/RSHEAT/Museum-TePapa-0.02.tar.gz, RSHEAT, 2023; MetaCPAN )
Museum-TePapa/lib/Museum/TePapa.pm ( view source; MetaCPAN )
package Museum::TePapa;

use 5.34.0;
use strictures 2;

use JSON::MaybeXS;
use LWP::UserAgent;
use Moo;
use URI::QueryParam;

use namespace::clean;

=head1 NAME

Museum::TePapa - an interface to the T
my $ua = LWP::UserAgent->new;
    $ua->agent("Museum::TePapa/$VERSION");

    my $res;
    my $json = JSON::MaybeXS->new();
    my $stopnow = 0;
    my $method = 'POST';
    do {
        my $req = HTT
Request->new(
            $method => $url,
            [
                'Accept' => 'application/json; charset=UTF-8',
                'x-api-key'    => $self->key,
            ]
        );
        $
Crypt-LE ( L/LE/LEADER/Crypt-LE-0.39.tar.gz, LEADER, 2023; MetaCPAN )
Crypt-LE/script/le.pl ( view source; MetaCPAN )
#!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Long;
use IO::File;
use JSON::MaybeXS;
use Log::Log4perl;
use Log::Log4perl::Level;
use Module::Load;
use Encode 'decode';
use Digest::SHA 'sh
}->("Could not read the file with '$type'.", 'FILE_READ') unless $opt->{$type};
    }
    my $j = JSON->new->canonical()->allow_nonref();
    eval {
        $opt->{$type} = $j->decode($opt->{$type});
 not decode '$type'. Please make sure you are providing a valid JSON document and {} are in place." . ($opt->{'debug'} ? $@ : ''), 'JSON_DECODE') : 0;
}

sub _read {
    my $file = shift;
    return u
WebService-GoogleAPI-Client ( V/VE/VEESH/WebService-GoogleAPI-Client-0.27.tar.gz, LOCALSHOP, 2023; MetaCPAN )
WebService-GoogleAPI-Client/lib/WebService/GoogleAPI/Client/AuthStorage/Memory.pm ( view source; MetaCPAN )
h tokens from JSON data sources

use Mojo::Base 'WebService::GoogleAPI::Client::AuthStorage';

use Config::JSON;
use Carp;

#has 'pathToTokensFile' => ( is => 'rw', default => 'gapi.json' );    # defa
ult is gapi.json

# has 'tokensfile';  # Config::JSON object pointer
#my $tokensfile;
has 'debug'  => ( is => 'rw', default => 0 );
has 'scopes' => ( is => 'rw', default => [] );
has 'client_secret' =
 NAME

WebService::GoogleAPI::Client::AuthStorage::Memory - Specific methods to fetch tokens from JSON data sources

=head1 VERSION

version 0.21

=head1 AUTHOR

Peter Scott <localshop@cpan.org>

=hea
Crypt-LE ( L/LE/LEADER/Crypt-LE-0.39.tar.gz, LEADER, 2023; MetaCPAN )
Crypt-LE/lib/Crypt/LE.pm ( view source; MetaCPAN )
mmand line, you could also give a name of a file containing valid JSON to read them from.

B<le.pl ... --complete-params complete.json>
 
Crypt::LE::Challenge:: and Crypt::LE::Complete:: namespaces ar
tails() methods, which
will be set with some values on error.

=cut

use Crypt::OpenSSL::RSA;
use JSON::MaybeXS;
use HTTP::Tiny;
use IO::File;
use Digest::SHA qw<sha256 hmac_sha256>;
use MIME::Base64 
eysize = 4096;
our $keycurve = 'prime256v1';
our $headers = { 'Content-type' => 'application/jose+json' };
our $default_ca = 'letsencrypt.org';

our $cas = {
    'letsencrypt.org'    => {
            
Museum-Rijksmuseum-Object ( R/RS/RSHEAT/Museum-Rijksmuseum-Object-0.03.tar.gz, RSHEAT, 2023; MetaCPAN )
Museum-Rijksmuseum-Object/lib/Museum/Rijksmuseum/Object.pm ( view source; MetaCPAN )
package Museum::Rijksmuseum::Object;

use strictures 2;

use Carp;
use JSON::MaybeXS;
use LWP::UserAgent;
use Moo;
use URI;
use URI::Encode qw( uri_encode );
use URI::QueryParam;

use namespace::clean
    my $res = $ua->request($req);
    if ( $res->is_success ) {
        my $json = JSON::MaybeXS->new();
        return $json->decode( $res->content );
    } else {
        return { error => $res->sta
Geo-Coder-OpenCage ( E/ED/EDF/Geo-Coder-OpenCage-0.36.tar.gz, EDF, 2023; MetaCPAN )
Geo-Coder-OpenCage/lib/Geo/Coder/OpenCage.pm ( view source; MetaCPAN )
$Geo::Coder::OpenCage::VERSION = '0.36';
use strict;
use warnings;

use Carp;
use HTTP::Tiny;
use JSON::MaybeXS;
use Scalar::Util 'blessed';
use URI;

my $version = our $VERSION || 'dev';
my $ua_strin
 HTTP::Tiny->new(agent => $ua_string);
    my $api_url = 'https://api.opencagedata.com/geocode/v1/json';
    
    if (defined($params{http} && $params{http} == 1 )){
        $api_url =~ s|^https|http|
   version => $version,
        api_key => $params{api_key},
        ua      => $ua,
        json    => JSON::MaybeXS->new(utf8 => 1),
        url     => URI->new($api_url),
    };

    return bless $
WebService-GoogleAPI-Client ( V/VE/VEESH/WebService-GoogleAPI-Client-0.27.tar.gz, VEESH, 2023; MetaCPAN )
WebService-GoogleAPI-Client/lib/WebService/GoogleAPI/Client/UserAgent.pm ( view source; MetaCPAN )
gent';

#extends 'Mojo::UserAgent::Mockable';
use WebService::GoogleAPI::Client::AuthStorage::GapiJSON;
use Mojo::UserAgent;
use Data::Dump qw/pp/;    # for dev debug
use Data::Printer filters => 'Web
e' => (
  is      => 'rw',
  default => sub {
    WebService::GoogleAPI::Client::AuthStorage::GapiJSON->new;
  },
  handles => [qw/get_access_token scopes user/],
  trigger => 1,
  isa     => sub {
  
d_tx( $http_method => $path => $headers ) : $self->build_tx( $http_method => $path => $headers => json => $optional_data );
    if ($optional_data eq '') {
      return $self->build_tx($http_method =>
WebService-GoogleAPI-Client ( V/VE/VEESH/WebService-GoogleAPI-Client-0.27.tar.gz, VEESH, 2023; MetaCPAN )
WebService-GoogleAPI-Client/lib/WebService/GoogleAPI/Client/Discovery.pm ( view source; MetaCPAN )
{
      $ret = $self->ua->get($key)->res;
    }
    if ($ret->is_success) {
      my $all = $ret->json;
      $self->stats->{network}{get}++;
      $self->chi->set($key, $all, '30d');
      return $al
he($url, $force, $authenticate)

Retrieves the given API URL, retrieving and caching the returned
JSON. If it gets a 403 Unauthenticated error, then it will try
again using the credentials that are sa
scoveryRestUrl' => 'https://developers.google.com/my-business/samples/mybusiness_google_rest_v4p2.json',
      'name' => 'mybusiness'
    });

This can also be used to overwrite the cached structure.
WebService-GoogleAPI-Client ( V/VE/VEESH/WebService-GoogleAPI-Client-0.27.tar.gz, LOCALSHOP, 2023; MetaCPAN )
WebService-GoogleAPI-Client/lib/WebService/GoogleAPI/Client/AuthStorage/ConfigJSON.pm ( view source; MetaCPAN )
rage::ConfigJSON;
$WebService::GoogleAPI::Client::AuthStorage::ConfigJSON::VERSION = '0.21';

# ABSTRACT: Specific methods to fetch tokens from JSON data sources

use Moo;
use Config::JSON;
use Carp;

has 'pathToTokensFile' => ( is => 'rw', default => 'gapi.json' );    # default is gapi.json

# has 'tokensfile';  # Config::JSON object pointer
my $tokensfile;
has 'debug' => ( is => 'rw', default =>
kenfile?, global $tokensfile? .. *sigh*

sub setup
{
  my ( $self ) = @_;
  $tokensfile = Config::JSON->new( $self->pathToTokensFile );
  return $self;
}

sub get_credentials_for_refresh
{
  my ( $sel
App-ggdrv ( T/TU/TULAMILI/App-ggdrv-0.031.tar.gz, TULAMILI, 2023; MetaCPAN )
App-ggdrv/lib/App/ggdrv/upload.pm ( view source; MetaCPAN )
load ;
use strict;
use warnings;
use feature 'say' ; 
use HTTP::Request::Common;
use JSON qw/encode_json decode_json/;
use LWP::UserAgent;
use Getopt::Std ; 
use Carp; 

my ($gfile , $atoken, $GOOGLE_
; 
}

sub f_each ( $ ) { 
  binmode STDOUT, ":utf8";
  my $mimeType = $o{m} ; 
  my $ej1 = encode_json { name => $_[0] , mimeType => $mimeType , $o{f} ne q[] ? ( parents  => [ $o{f} ] ): () } ;
  my $
 undef, undef , 'Content-Type' => 'application/json;charset=UTF-8' , 'Content' => $ej1 ] ,
      file => [ $_[0] ] ,
    ] ,
    ) ;
  my $j = decode_json ( $res->content ) ; 
  say join "\t" , map { 
WWW-PiHole ( R/RW/RWP/WWW-PiHole-0.230690.tar.gz, RWP, 2023; MetaCPAN )
WWW-PiHole/lib/WWW/PiHole.pm ( view source; MetaCPAN )
ental qw( class );

package WWW::PiHole;

class WWW::PiHole {

  use URI;
  use HTTP::Tiny;
  use JSON::PP;
  use Syntax::Operator::In;
  use Term::ANSIColor;

  # @formatter:off

  field $auth :param
y $http = HTTP::Tiny -> new;
  my $json = JSON::PP -> new;

  method _content ( ) {
    $http -> get( $uri ) -> {content};
  }

  method _content_json ( ) {
    $json -> decode( $self -> _content ); #
  $self -> _content_json -> {status};
  }

  method _list ( $uri ) {
    my $json_body = $self -> _content_json;
    if ( $json_body -> {success} ) { # JSON::PP::Boolean
      $json_body -> {message};
WebService-GoogleAPI-Client ( V/VE/VEESH/WebService-GoogleAPI-Client-0.27.tar.gz, VEESH, 2023; MetaCPAN )
WebService-GoogleAPI-Client/lib/WebService/GoogleAPI/Client.pm ( view source; MetaCPAN )
use WebService::GoogleAPI::Client::Discovery;
use WebService::GoogleAPI::Client::AuthStorage::GapiJSON;
use WebService::GoogleAPI::Client::AuthStorage::ServiceAccount;
use Carp;
use CHI;
use Mojo::Uti
assuming it's always
#      returning the res. Perhaps mix in something that delegates the
#      json method to the res?

# ABSTRACT: Google API Discovery and SDK

#   FROM MCE POD -- <p><img src="ht
 = $params->{auth_storage};
  } elsif ($file = $params->{gapi_json}) {
    $storage = WebService::GoogleAPI::Client::AuthStorage::GapiJSON->new(path => $file);
  } elsif ($file = $params->{service_acc
App-ggdrv ( T/TU/TULAMILI/App-ggdrv-0.031.tar.gz, TULAMILI, 2023; MetaCPAN )
App-ggdrv/lib/App/ggdrv/fsearchall.pm ( view source; MetaCPAN )
t; use warnings;
use feature 'say' ; 
use Data::Dumper ; 
use Getopt::Std ; 
use HTTP::Tiny ;
use JSON ; 

my ( $GOOGLE_DRIVE_API , $gfile , $atoken , $count_limit , $uri , %o ) ;
return 1 ; 

sub fse
数
  my $ht = HTTP::Tiny->new();
  while ( $count < $count_limit ) {
    my $contents = decode_json( $ht->get($uri)->{content} );
    do { print Dumper $contents ; $contents->{error} ? last : next } 
Bitcoin-RPC-Client ( W/WH/WHINDS/Bitcoin-RPC-Client-0.12.tar.gz, WHINDS, 2023; MetaCPAN )
Bitcoin-RPC-Client/ex/example.pl ( view source; MetaCPAN )
/reference/rpc/getbalance.html
$balance = $btc->getbalance("*", 1, JSON::true);
print $balance;
print "\n";

# Getting data when JSON/hash is returned from getblockchaininfo
#     https://developer.bi
info = $btc->getblockchaininfo;
$blocks = $info->{blocks};
print $blocks;
print "\n";
# 584240

# JSON Objects
# Let's say we want the timeframe value from getnetttotals
#     https://developer.bitcoi
tals;
$timeframe = $nettot->{uploadtarget}->{timeframe};
print $timeframe;
print "\n";
# 86400

# JSON arrays
# Let's say we want the feerate_percentiles from getblockstats
#     https://developer.bit
Locale-XGettext ( G/GU/GUIDO/Locale-XGettext-0.8.tar.gz, GUIDO, 2023; MetaCPAN )
Locale-XGettext/lib/Locale/XGettext.pod ( view source; MetaCPAN )
 keywords 
(actually just a subset for it) for the language C would look like 
this (expressed in JSON):

    [
        "gettext:1",
        "ngettext:1,2",
        "pgettext:1c,2",
        "npgettext
fault flag
specifications for the specific language.  An example may look
like this (expressed in JSON):

    [
        "gettextx:1:perl-brace-format",
        "ngettextx:1:perl-brace-format",
       

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