The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WebService::UK::Parliament - Query the UK Parliament API

VERSION

Version 1.00

SYNOPSIS

use WebService::UK::Parliament;

my $factory = WebService::UK::Parliament->new();

my $members = $factory->members();

my $local = $members->getLocationConstituencySearch({
	searchText => $j_corbyn,
	take => 326,
});
	
... # independence

DESCRIPTION

Query the UK Parliament API via their OpenAPI definition.

See https://developer.parliament.uk/ for the full documentation.

They have no operationId so they're generated using the method + path minus params and slashes, as an example /api/Location/Constituency/{id} becomes getLocationConstituency.

METHODS

bills

An API which retrieves Members data.

$factory->bills;

commonsVotes

An API that allows querying of Commons Votes data.

$factory->commonsVotes;

erskinMay

An API that allows querying of Erskine May data.

$factory->erskinMay;

lordsVotes

An API that allows querying of Lords Votes data.

$factory->lordsVotes;

members

An API which retrieves Members data.

$factory->members;

now

Get data from the annunciator system.

$factory->now;

oralQuestions

An API that allows querying all tabled oral and written questions, and motions for the House of Commons.

$factory->oralQuestions;

statutoryInstruments

An API exposing details of the various types of Statutory Instruments laid before Parliament.

$factory->statutoryInstruments;

treaties

An API exposing details of the treaties laid before Parliament.

$factory->treaties;

writtenQuestions

Data around written questions and answers, as well as written ministerial statements.

$factory->writtenQuestions;

AUTHOR

LNATION, <thisusedtobeanemail at gmail.com>

BUGS

Please report any bugs or feature requests to bug-webservice-uk-parliament at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-UK-Parliament. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc WebService::UK::Parliament

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

The first ticehurst bathroom experience

This software is Copyright (c) 2022 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)