Group
Extension

Matches 35358

Business-TrueLayer ( L/LE/LEEJO/Business-TrueLayer-0.05.tar.gz, LEEJO, 2024; MetaCPAN )
Business-TrueLayer/lib/Business/TrueLayer/Request.pm ( view source; MetaCPAN )
ss::TrueLayer::Signer;

use Try::Tiny::SmartCatch;
use Mojo::UserAgent;
use Carp qw/ croak /;
use JSON;
use Data::GUID;

my $MAX_REDIRECTS = 5;

has [ qw/ client_id client_secret kid / ] => (
    is  
quest_body = undef,
    $expect_json = 1,
) {
    # sign the request
    my $idempotency_key = $self->idempotency_key;

    my $json = $http_request_body
        ? JSON->new->utf8->canonical->encode( 
te_path,
        $idempotency_key,
        $json,
    );

    return $self->_ua_request(
        "https://" . $self->api_host . $absolute_path,
        $json,
        [
            'Authorization' => 
Business-TrueLayer ( L/LE/LEEJO/Business-TrueLayer-0.05.tar.gz, LEEJO, 2024; MetaCPAN )
Business-TrueLayer/lib/Business/TrueLayer/Authenticator.pm ( view source; MetaCPAN )
ess::TrueLayer::Types;

use Try::Tiny::SmartCatch;
use Mojo::UserAgent;
use Carp qw/ croak /;
use JSON;

has 'scope' => (
    is        => 'rw',
    isa       => 'ArrayRef',
    required  => 0,
    de
       return $self;
    }

    my $url = "https://" . $self->host . "/connect/token";
    my $json = JSON->new->utf8->canonical->encode(
        {
            grant_type    => 'client_credentials',
 
 join( " ",$self->scope->@* ),
        }
    );

    my $res_content = $self->_ua_request( $url, $json );

    # If any of these are missing, we get "interesting" errors from Moose
    # constraint vi
Business-GoCardless ( L/LE/LEEJO/Business-GoCardless-0.44.tar.gz, LEEJO, 2024; MetaCPAN )
Business-GoCardless/lib/Business/GoCardless.pm ( view source; MetaCPAN )
 ) = @_;

    return Business::GoCardless::Webhook->new(
        client => $self->client,
        json   => $data,
    );
}

sub _generic_find_obj {
    my ( $self,$id,$class,$sub_key ) = @_;
    $cla
Business-GoCardless ( L/LE/LEEJO/Business-GoCardless-0.44.tar.gz, LEEJO, 2024; MetaCPAN )
Business-GoCardless/lib/Business/GoCardless/Webhook.pm ( view source; MetaCPAN )
ngs;

use Moo;
extends 'Business::GoCardless::Resource';
with 'Business::GoCardless::Utils';

use JSON ();
use Business::GoCardless::Exception;

=head1 ATTRIBUTES

    resource_type
    action

=cut

 webhook

=head2 json

Allows you to set the json data sent to you in the webhook:

	$Webhook->json( $json_data )

Will throw a L<Business::GoCardless::Exception> exception if the json fails to
parse 

has json => (
	is       => 'rw',
    required => 1,
    trigger  => sub {
        my ( $self,$json ) = @_;

        # defensive decoding
		my $params;
		eval { $params = JSON->new->decode( $json ) };
Vote-Count ( B/BR/BRAINBUZ/Vote-Count-2.05.tar.gz, BRAINBUZ, 2024; MetaCPAN )
Vote-Count/lib/Vote/Count/Charge.pm ( view source; MetaCPAN )
match';

use Sort::Hash;
use Data::Dumper;
use Time::Piece;
use Path::Tiny;
use Carp;
use Cpanel::JSON::XS;
use YAML::XS;
# use Storable 3.15 'dclone';

our $VERSION='2.04';

has 'Seats' => (
  is    
t( $I) {
  my $jsonpath = $I->LogTo . '_stvevents.json';
  my $yamlpath = $I->LogTo . '_stvevents.yaml';
  # my $yaml = ;
  my $coder = Cpanel::JSON::XS->new->ascii->pretty;
  path($jsonpath)->spew( $
lds a list of data references instead of readably formatted events.

=head2 WriteSTVEvent

Writes JSON and YAML logs (path based on LogTo) of the STVEvents.

=head2 SetQuota

Calculate the Hare or Dro
Vote-Count ( B/BR/BRAINBUZ/Vote-Count-2.05.tar.gz, BRAINBUZ, 2024; MetaCPAN )
Vote-Count/lib/Vote/Count/Method/STAR.pm ( view source; MetaCPAN )
ssee = Vote::Count::Method::STAR->new(
  BallotSet  => read_range_ballots('t/data/tennessee.range.json'), );
  my $winner = $tennessee->STAR() ;

  say $Election->logv();

=head1 Description

Implemen
Vote-Count ( B/BR/BRAINBUZ/Vote-Count-2.05.tar.gz, BRAINBUZ, 2024; MetaCPAN )
Vote-Count/lib/Vote/Count/Score.pm ( view source; MetaCPAN )
y $RangeElection = Vote::Count->new(
    BallotSet  => read_range_ballots('t/data/tennessee.range.json')
    );
  my $scored = $RangeElection->Score();

=head1 Range Score Methods

When Range (Cardina
Business-GoCardless ( L/LE/LEEJO/Business-GoCardless-0.44.tar.gz, LEEJO, 2024; MetaCPAN )
Business-GoCardless/lib/Business/GoCardless/Paginator.pm ( view source; MetaCPAN )
 a list.

=cut

use strict;
use warnings;

use Moo;
extends 'Business::GoCardless::Resource';
use JSON ();

use Business::GoCardless::Bill;
use Business::GoCardless::PreAuthorization;
use Business::Go
            # defensive decoding
            eval { $info = JSON->new->decode( $info ) };
            $@ && do { return "Failed to parse JSON response ($info): $@"; };
        }
        return $info;
Vote-Count ( B/BR/BRAINBUZ/Vote-Count-2.05.tar.gz, BRAINBUZ, 2024; MetaCPAN )
Vote-Count/lib/Vote/Count/Overview.pod ( view source; MetaCPAN )
ads that from disk. In the future additional formats may be added. Range Ballots may be in either JSON or YAML formats.

=head2 L<RankCount|Vote::Count::RankCount> Object

Votes are frequently put int
Business-GoCardless ( L/LE/LEEJO/Business-GoCardless-0.44.tar.gz, LEEJO, 2024; MetaCPAN )
Business-GoCardless/lib/Business/GoCardless/Pro.pm ( view source; MetaCPAN )
ts( %filter );

    # on any resource object:
    my %data = $Payment->to_hash;
    my $json = $Payment->to_json;

=head1 PAGINATION

Any methods marked as B<pager> have a dual interface, when called 
ect from the data sent to you via a
GoCardless webhook:

    my $Webhook = $GoCardless->webhook( $json_data,$signature );

Note that GoCardless may continue to send old style webhooks even after you h
    => $self->client,
        json       => $data,
        # load ordering handled by setting _signature rather than signature
        # signature will be set in the json trigger
        _signature =>
Vote-Count ( B/BR/BRAINBUZ/Vote-Count-2.05.tar.gz, BRAINBUZ, 2024; MetaCPAN )
Vote-Count/buildpod.pl ( view source; MetaCPAN )
# use Encode qw (from_to decode_utf8 encode_utf8 decode encode);
# use Cpanel::JSON::XS;    # qw( encode_json decode_json );
use Data::Printer;
# use Data::Dumper;
# use charnames ':full';
# use Unico
Catmandu-OAI ( H/HO/HOCHSTEN/Catmandu-OAI-0.21.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-OAI/lib/Catmandu/Importer/OAI/Parser/mods.pm ( view source; MetaCPAN )
orter::OAI::Parser::mods;

use Catmandu::Sane;
use Moo;
use MODS::Record;
use Catmandu::Util;
use JSON;

our $VERSION = '0.21';

with 'Catmandu::Logger';

sub parse {
    my ($self,$dom) = @_;

    re
> 1 };

    eval {
        my $mods = MODS::Record->from_xml($xml);
        $perl = JSON::decode_json($mods->as_json);
    };
    if ($@) {
        $self->log->error($@);
        $self->log->error("Fa
Business-GoCardless ( L/LE/LEEJO/Business-GoCardless-0.44.tar.gz, LEEJO, 2024; MetaCPAN )
Business-GoCardless/lib/Business/GoCardless/Client.pm ( view source; MetaCPAN )
onfess /;
use POSIX qw/ strftime /;
use MIME::Base64 qw/ encode_base64 /;
use LWP::UserAgent;
use JSON ();

=head1 ATTRIBUTES

=head2 token

Your gocardless API token, this attribute is required.

=he
eq->header( 'Authorization' => "Basic $credentials" );
    $req->header( 'Accept' => 'application/json' );

    $req->content_type( 'application/x-www-form-urlencoded' );
    $req->content( $self->nor
header( 'Authorization' => "Bearer " . $self->token );
    $req->header( 'Accept' => 'application/json' );

    if ( $self->api_version > 1 ) {
        # pegged to a specific version for this library 
Vote-Count ( B/BR/BRAINBUZ/Vote-Count-2.05.tar.gz, BRAINBUZ, 2024; MetaCPAN )
Vote-Count/lib/Vote/Count/Method/WIGM.pm ( view source; MetaCPAN )
ction
  $D->WIGRun();
  # Write the Human Readable Logs
  $D->WriteLog();
  # Write the Events in JSON and YAML
  $D->WriteSTVEvent();

=head1 Description

Implements Weighted Improved Gregory Single 
Regexp-Pattern-License ( J/JO/JONASS/Regexp-Pattern-License-v3.11.2.tar.gz, JONASS, 2024; MetaCPAN )
Regexp-Pattern-License/lib/Regexp/Pattern/License.pm ( view source; MetaCPAN )
 json

I<Since v3.1.90.>

=cut

$RE{json} = {
	name                                    => 'JSON',
	'name.alt.org.spdx.since.date_20130117' => 'JSON',
	caption                                 => 'JSON 
License',
	'caption.alt.org.fedora'                => 'JSON License',
	'caption.alt.org.tldr'                  => 'The JSON License',
	tags                                    => [
		'license:is:grant'
	"iri.$slug",
				'https://spdx.org/licenses/',
				$_,
				'',
			];
			for my $ext (qw(txt html json)) {
				push @variants, [
					"iri.$slug.format.$ext",
					'https://spdx.org/licenses/',
					$
Vote-Count ( B/BR/BRAINBUZ/Vote-Count-2.05.tar.gz, BRAINBUZ, 2024; MetaCPAN )
Vote-Count/lib/Vote/Count/Charge/Cascade.pm ( view source; MetaCPAN )
e 3.15 'dclone';
use Mojo::Template;
use Sort::Hash;
use Data::Dumper;
use Try::Tiny;
use Cpanel::JSON::XS;
use YAML::XS;
use Path::Tiny;
use Carp;
use Vote::Count::Helper::FullCascadeCharge;

our $VE
d the last charged values for elected choices.
  $I->{'lastcharge'} = {};
}

our $coder = Cpanel::JSON::XS->new->ascii->pretty;

sub Round($I) { return $I->{'currentround'}; }

# quota and charge of f
) {
  if( $I->IterationLog() ) {
    my $jsonpath = $I->IterationLog() . ".$round.json";
    my $yamlpath = $I->IterationLog() . ".$round.yaml";
    path( $jsonpath )->spew( $coder->encode( $data ) );
Business-GoCardless ( L/LE/LEEJO/Business-GoCardless-0.44.tar.gz, LEEJO, 2024; MetaCPAN )
Business-GoCardless/lib/Business/GoCardless/Resource.pm ( view source; MetaCPAN )
ut extend it instead.

=cut

use strict;
use warnings;

use Moo;
use Carp qw/ carp confess /;
use JSON ();

=head1 ATTRIBUTES

=head2 endpoint

The gocardless API endpoint that corresponds to the reso
 the object.

    my %data = $Bill->to_hash;

=head2 to_json

Returns a json string representation of the object.

    my $json = $Bill->to_json;

=cut

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

    my %h
ash = %{ $self };
    delete( $hash{client} );
    return %hash;
}

sub to_json {
    my ( $self ) = @_;
    return JSON->new->canonical->encode( { $self->to_hash } );
}

=head1 AUTHOR

Lee Johnson - 
Business-GoCardless ( L/LE/LEEJO/Business-GoCardless-0.44.tar.gz, LEEJO, 2024; MetaCPAN )
Business-GoCardless/lib/Business/GoCardless/Merchant.pm ( view source; MetaCPAN )
> $class,
        client  => $self->client,
        links   => $links,
        info    => $info ? JSON->new->decode( $info ) : {},
        objects => \@objects,
    );
}

=head1 AUTHOR

Lee Johnson - 
Vote-Count ( B/BR/BRAINBUZ/Vote-Count-2.05.tar.gz, BRAINBUZ, 2024; MetaCPAN )
Vote-Count/lib/Vote/Count/ReadBallots.pm ( view source; MetaCPAN )
s/;
use strict;
use warnings;
no warnings qw/experimental/;
use Path::Tiny;
use Carp;
use Cpanel::JSON::XS;
use YAML::XS;
# use Data::Dumper;

# ABSTRACT: Read Ballots for Vote::Count. Toolkit for vot

Range Ballots are supported in both JSON and YAML format. The read method doesn't perform validation like B<read_ballots> does.

=head2 Range Ballot Format in JSON

  {
    "choices": [
      "TWEEDL
s a parameter of a JSON or YAML file. The second parameter may be either 'json' or 'yaml', defaulting to 'json'.

  my $BestFastFood = read_range_ballots('t/data/fastfood.range.json');
  my $BestFastF
Catmandu-OAI ( H/HO/HOCHSTEN/Catmandu-OAI-0.21.tar.gz, HOCHSTEN, 2024; MetaCPAN )
Catmandu-OAI/lib/Catmandu/Store/OAI.pm ( view source; MetaCPAN )
ine

    # Export data from OAI
    $ catmandu export OAI --url http://somewhere.org/oai to JSON > data.json

    # Export only one record
    $ catmandu export OAI --url http://somewhere.org/oai --id

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