Group
Extension

Matches 35358

Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/Command/Javascript.pm ( view source; MetaCPAN )
Qgoda::Command::Javascript::VERSION = '0.9.8';
use strict;

use Locale::TextDomain qw(qgoda);
use JSON;
use Storable;
use YAML::XS;

use Qgoda;
use Qgoda::CLI;
use Qgoda::JavaScript::Environment;
use 
mpty read_file);

use base 'Qgoda::Command';

sub _getDefaults {
	global => [],
	input_format => 'json'
}

sub _getOptionSpecs {
	input => 'i|input=s',
	input_data => 'input-data=s',
	input_format => 
d input format '{format}'.\n",
	        format => $options{input_format})
	    if ($lc_format ne 'json' && $lc_format ne 'yaml'
	        && $lc_format ne 'perl' && $lc_format ne 'storable');

	my $cod
Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/TT2/Plugin/Qgoda.pm ( view source; MetaCPAN )
n qw('qgoda');
use File::Spec;
use Cwd;
use URI;
use Scalar::Util qw(reftype);
use JSON 2.0 qw(encode_json decode_json);
use Date::Parse qw(str2time);
use POSIX qw(setlocale LC_ALL);
use File::Basenam
e) {
        my $json = encode_json($filters);
        $json =~ s{.(.*).}{$1};
        die __x("invalid filters '{filters}' (use named arguments!)\n",
                 filters => $json);
    } elsif (
    my $reftype = reftype $hashref;
    if ('ARRAY' eq $reftype) {
        my $json = encode_json($hashref);
        $json =~ s{.(.*).}{$1};
        die __x("invalid arguments '{args}' for method '{me
Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/Init/node.pm ( view source; MetaCPAN )
{_package}) {
        $logger->info(__"updating 'package.json'");

        my $json = JSON->new;
        my $json_data = read_file 'package.json'
            or $logger->fatal(__x("cannot read '{filen
                             filename => 'package.json',
                                  error => $!));

        my $old = eval { $json->decode($json_data) };
        $logger->fatal($@) if $@;

    
 = merge_data $old, $config->{_package};
        $json->pretty(1);
        $json_data = $json->encode($data);

        write_file 'package.json', $json_data
            or $logger->fatal(__x("cannot w
WebService-Client ( I/IR/IRONCAMEL/WebService-Client-1.0001.tar.gz, IRONCAMEL, 2020; MetaCPAN )
WebService-Client/foo.pl ( view source; MetaCPAN )
client->get('/bpi/currentprice.json')->{bpi}{USD}{rate_float};

my $client2 = CoinDeskClient->new();
say $client2->get('https://api.coindesk.com/v1/bpi/currentprice.json')
    ->{bpi}{USD}{rate_float}
;

my $client3 = CoinDeskClient->new(
    base_url => 'https://api.coindesk.com/v1',
    mode => 'v99',
);
say $client3->get('/bpi/currentprice.json')->data->{bpi}{USD}{rate_float};
Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/JavaScript/Environment.pm ( view source; MetaCPAN )
se strict;

use Qgoda::Util qw(empty);
use JavaScript::Duktape::XS 0.000074;
use Cpanel::JSON::XS qw(decode_json);
use File::Spec;
use File::Basename qw(dirname);
use Locale::TextDomain qw(qgoda);

BE
            filename => $filename, err => $!));

	my $code = join '', <$fh>;
	if ($filename =~ /\.json$/) {
		$code = 'module.exports = ' . $code;
	}

	return $code;
}

sub __normalize {
	my ($self, $
self->__isFile($filename);
	# FIXME! Try to mark $filename as json.  That's safer than looking
	# at the extender;
	$filename = "$name.json";
	return $filename if $self->__isFile($filename);

	die;
}
Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/Command/Schema.pm ( view source; MetaCPAN )
L::XS;
use JSON;
use Data::Dumper;
use Storable qw(nfreeze);
use Locale::TextDomain qw(qgoda);

use Qgoda;
use Qgoda::Schema;

use base 'Qgoda::Command';

sub _getDefaults {
	format => 'json'
}

sub _
a->config;
	if ('yaml' eq $options{format}) {
		print Dump($schema);
	} elsif ('json' eq $options{format}) {
		print JSON->new->canonical->encode($schema);
	} elsif ('perl' eq $options{format}) {
		pr
T][--help]

Try 'qgoda --help' for a description of global options.

=head1 DESCRIPTION

Dump the JSON schema for the Qgoda configuration to the console (standard
output).

B<Important!> The Qgoda con
Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/Command/Config.pm ( view source; MetaCPAN )
d from F<_config.yaml> (resp. F<_config.yml> or]
F<_config.json>) and  F<_localconfig.yaml> (resp. F<_localconfig.yml>
or F<_localconfig.json>).

If none of these files exist, the Qgoda default config
Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/CLI.pm ( view source; MetaCPAN )
       dump the configuration JSON schema and exit
  init                        initialize a new qgoda site
  dump                        dump the site structure as JSON (implies --quiet)
  javascrip
WebService-Client ( I/IR/IRONCAMEL/WebService-Client-1.0001.tar.gz, IRONCAMEL, 2020; MetaCPAN )
WebService-Client/stocks.pl ( view source; MetaCPAN )
b 'lib';

my $client = Client->new();
my $btc_url = 'https://api.coindesk.com/v1/bpi/currentprice.json';
say $client->get($btc_url)->{bpi}{USD}{rate_float};

my $token = 'pk_da8de08f10a04315b26641ed3f
WebService-Client ( I/IR/IRONCAMEL/WebService-Client-1.0001.tar.gz, IRONCAMEL, 2020; MetaCPAN )
WebService-Client/lib/WebService/Client.pm ( view source; MetaCPAN )
ON

use Carp qw(croak);
use HTTP::Request;
use HTTP::Request::Common qw(DELETE GET POST PUT);
use JSON::MaybeXS ();
use LWP::UserAgent;
use WebService::Client::Response;

has base_url => (
    is     
lt => sub { 'application/json' },
);

has deserializer => (
    is      => 'ro',
    lazy    => 1,
    default => sub {
        my $self = shift;
        my $json = $self->json;
        sub {
        
eturn $json->decode($res->content);
        }
    },
);

has serializer => (
    is      => 'ro',
    lazy    => 1,
    default => sub {
        my $self = shift;
        my $json = $self->json;
     
BrandMeister-API ( R/RU/RUNE/BrandMeister-API-0.3.tar.gz, RUNE, 2020; MetaCPAN )
BrandMeister-API/lib/BrandMeister/API.pm ( view source; MetaCPAN )
use strict;

package BrandMeister::API;

use LWP::UserAgent;
use HTTP::Request::Common;
use JSON;
use MIME::Base64;
#use LWP::ConsoleLogger::Everywhere ();
#use Data::Dumper;

=head1 NAME

BM::API - U
);
	bless($self,$class);
	return($self);
};

sub _build_request {
    my($self) = shift;
    #my($json) = shift;
    my($requrlpart) = shift;
    my($formdataref) = shift;
    my($uri) = $self->{BM_AP
tent( $json );
    return($req);
    
};

sub _send_request {
    my($self) = shift;
    my($req) = shift;
    return(1) if (!$req);
    my($ua) = LWP::UserAgent->new;
    my($jsonresobj) = JSON->new;
Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/Schema.pm ( view source; MetaCPAN )

use Locale::TextDomain qw(qgoda);
use Cwd;
use JSON::PP;
use File::Spec;

use Qgoda;

use constant true => $JSON::PP::true;
use constant false => $JSON::PP::false;

sub config {
	# FIXME! Fill in the
turn {
		'$schema' => 'http://json-schema.org/draft-07/schema#',
		'$id' => 'http://www.qgoda.net/schema/Qgoda/v'
		         . $Qgoda::VERSION
				 . '/config.schema.json',
		title => __"Configuration
Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/PluginUtils.pm ( view source; MetaCPAN )
ils::VERSION = '0.9.8';
use strict;

use Locale::TextDomain qw(qgoda);
use File::Spec;
use JSON qw(decode_json);
use Scalar::Util qw(reftype);

use Qgoda::Util qw(read_file empty);

use base 'Exporter
   $_, 'package.json') }
                            grep !/^\./, readdir $dh) {
            my $package_dir = File::Spec->catfile('node_modules', $subdir);
            my $package_json = File::Spec->
, 
                                                  'package.json');
            my $package = eval { decode_json read_file $package_json }
                or next;
            next if !$package->{qg
Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/Asset.pm ( view source; MetaCPAN )
      return $self->{origin};
    } else {
        return $self->getPath;
    }
}

sub dump {
    my ($self) = @_;

    return %$self;
}

sub TO_JSON {
    my ($self) = @_;

    return {%$self};
}
1;
WebService-Client ( I/IR/IRONCAMEL/WebService-Client-1.0001.tar.gz, IRONCAMEL, 2020; MetaCPAN )
WebService-Client/lib/WebService/Client/Response.pm ( view source; MetaCPAN )
package WebService::Client::Response;
use Moo;

our $VERSION = '1.0001'; # VERSION

use JSON::MaybeXS ();

has res => (
    is => 'ro',
    isa => sub {
        die 'res must be a HTTP::Response objec
us_line
    )],
);

has json => (
    is      => 'ro',
    lazy    => 1,
    default => sub { JSON::MaybeXS->new() },
);

sub data {
    my ($self) = @_;
    return $self->json->decode($self->decoded_
Mojo-WebService-LastFM ( T/TE/TESMITH/Mojo-WebService-LastFM-0.02.tar.gz, TESMITH, 2020; MetaCPAN )
Mojo-WebService-LastFM/lib/Mojo/WebService/LastFM.pm ( view source; MetaCPAN )
i_key . 
    '&format=json' . 
    '&limit=' . $limit;

    unless ( ref $_[-1] eq 'CODE' )
    {
        my $tx = $self->ua->get($url);
        return ( $tx->res ? $tx->res->json : $tx->error );
    
ed $tx->result;

        my $json = $tx->res->json;
        $callback->(Mojo::Exception->new('json response is undefined')) unless defined $json;

        $callback->($json);
    });
}

sub recenttrac
        my $json = $self->recenttracks({ 'username' => $username, 'limit' => 1 });
        if ( exists $json->{'recenttracks'}{'track'}[0] )
        {
            $np = _simplify_json($json);
        
Qgoda ( G/GU/GUIDO/Qgoda-0.9.8.tar.gz, GUIDO, 2020; MetaCPAN )
Qgoda/lib/Qgoda/Init.pm ( view source; MetaCPAN )
da::Init::VERSION = '0.9.8';
use strict;

use Locale::TextDomain qw('qgoda');
use File::Spec;
use JSON '2.90';
use Scalar::Util qw(weaken reftype);

use Qgoda::Util qw(read_file write_file yaml_error 
SMS-MessageBird ( J/JA/JAMESR/SMS-MessageBird-0.04.tar.gz, JAMESR, 2020; MetaCPAN )
SMS-MessageBird/lib/SMS/MessageBird/API/HLR.pm ( view source; MetaCPAN )
ad1 DESCRIPTION

This module provides the interface to the HLR related methods of the MessageBird
JSON API.

The methods implmented acceept the paramteres as named in the MessageBird API
documentation
y
checking.

=item content

This is a Perl hashref data structure decoded from the API's response JSON
as-is.

Please see the L<MessageBird Developer Documentation|https://www.messagebird.com/en-gb/de
SMS-MessageBird ( J/JA/JAMESR/SMS-MessageBird-0.04.tar.gz, JAMESR, 2020; MetaCPAN )
SMS-MessageBird/lib/SMS/MessageBird.pm ( view source; MetaCPAN )
package SMS::MessageBird;

use 5.006;
use strict;
use warnings;

use LWP::UserAgent;
use JSON;

use SMS::MessageBird::API::SMS;
use SMS::MessageBird::API::Voice;
use SMS::MessageBird::API::Verify;
use
=head1 DESCRIPTION

This module provides a simple Perl interface to the MessageBird JSON API. It
deals with the JSON stuff allowing you to get back useful Perl data.

To use this module you'll need an
SMS-MessageBird ( J/JA/JAMESR/SMS-MessageBird-0.04.tar.gz, JAMESR, 2020; MetaCPAN )
SMS-MessageBird/lib/SMS/MessageBird/API/Voice.pm ( view source; MetaCPAN )
N

This module provides the interface to the Text-to-Voice SMS related methods of
the MessageBird JSON API.

The methods implmented acceept the paramteres as named in the MessageBird API
documentation
y
checking.

=item content

This is a Perl hashref data structure decoded from the API's response JSON
as-is.

Please see the L<MessageBird Developer Documentation|https://www.messagebird.com/en-gb/de

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