NAME
WebService::UK::Parliament::OralQuestions - Query the UK Parliament Oral Qu API
VERSION
Version 1.00
SYNOPSIS
use WebService::UK::Parliament::OralQuestions;
my $client = WebService::UK::Parliament::OralQuestions->new();
my $data = $client->$endpoint($params);
DESCRIPTION
The following documentation is automatically generated using the UK Parliament OpenAPI specification.
An API that allows querying all tabled oral and written questions, and motions for the House of Commons.
Sections
Early Day Motions
getEarlyDayMotion
Returns a single Early Day Motion by ID
Method
get
Path
/EarlyDayMotion/{id}
Parameters
- id
-
Early Day Motion with the ID specified.
integer
format: int32
getEarlyDayMotionslist
Returns a list of Early Day Motions
Method
get
Path
/EarlyDayMotions/list
Parameters
- parameters.edmIds
-
Early Day Motions with an ID in the list provided.
array
{"format":"int32","type":"integer"}
- parameters.uINWithAmendmentSuffix
-
Early Day Motions with an UINWithAmendmentSuffix provided.
string
- parameters.searchTerm
-
Early Day Motions where the title includes the search term provided.
string
- parameters.currentStatusDateStart
-
Early Day Motions where the current status has been set on or after the date provided. Date format YYYY-MM-DD.
string
format: date-time
- parameters.currentStatusDateEnd
-
Early Day Motions where the current status has been set on or before the date provided. Date format YYYY-MM-DD.
string
format: date-time
- parameters.isPrayer
-
Early Day Motions which are a prayer against a Negative Statutory Instrument.
boolean
- parameters.memberId
-
Return Early Day Motions tabled by Member with ID provided.
integer
format: int32
- parameters.includeSponsoredByMember
-
Include Early Day Motions sponsored by Member specified
boolean
- parameters.tabledStartDate
-
Early Day Motions where the date tabled is on or after the date provided. Date format YYYY-MM-DD.
string
format: date-time
- parameters.tabledEndDate
-
Early Day Motions where the date tabled is on or before the date provided. Date format YYYY-MM-DD.
string
format: date-time
- parameters.statuses
-
Early Day Motions where current status is in the selected list.
array
{"enum":["Published","Withdrawn"],"type":"string"}
- parameters.orderBy
-
Order results by date tabled, title or signature count. Default is date tabled.
string
DateTabledAsc DateTabledDesc TitleAsc TitleDesc SignatureCountAsc SignatureCountDesc
- parameters.skip
-
The number of records to skip from the first, default is 0.
integer
format: int32
- parameters.take
-
The number of records to return, default is 25, maximum is 100.
integer
format: int32
Oral Question Times
getoralquestiontimeslist
Returns a list of oral question times
Method
get
Path
/oralquestiontimes/list
Parameters
- parameters.answeringDateStart
-
Oral Questions Time where the answering date has been set on or after the date provided. Date format YYYY-MM-DD.
string
format: date-time
- parameters.answeringDateEnd
-
Oral Questions Time where the answering date has been set on or before the date provided. Date format YYYY-MM-DD.
string
format: date-time
- parameters.deadlineDateStart
-
Oral Questions Time where the deadline date has been set on or after the date provided. Date format YYYY-MM-DD.
string
format: date-time
- parameters.deadlineDateEnd
-
Oral Questions Time where the deadline date has been set on or before the date provided. Date format YYYY-MM-DD.
string
format: date-time
- parameters.oralQuestionTimeId
-
Identifier of the OQT
integer
format: int32
- parameters.answeringBodyIds
-
Which answering body is to respond. A list of answering bodies can be found <a target="_blank" href="http://data.parliament.uk/membersdataplatform/services/mnis/referencedata/AnsweringBodies/">here</a>.
array
{"type":"integer","format":"int32"}
- parameters.skip
-
The number of records to skip from the first, default is 0.
integer
format: int32
- parameters.take
-
The number of records to return, default is 25, maximum is 100.
integer
format: int32
Oral Questions
getoralquestionslist
Returns a list of oral questions
Method
get
Path
/oralquestions/list
Parameters
- parameters.answeringDateStart
-
Oral Questions where the answering date has been set on or after the date provided. Date format YYYY-MM-DD.
string
format: date-time
- parameters.answeringDateEnd
-
Oral Questions where the answering date has been set on or before the date provided. Date format YYYY-MM-DD.
string
format: date-time
- parameters.questionType
-
Oral Questions where the question type is the selected type, substantive or topical.
string
Substantive Topical
- parameters.oralQuestionTimeId
-
Oral Questions where the question is within the question time with the ID provided
integer
format: int32
- parameters.askingMemberIds
-
The ID of the member asking the question. Lists of member IDs for each house are available <a href="http://data.parliament.uk/membersdataplatform/services/mnis/members/query/house=Commons" target="_blank">Commons</a> and <a href="http://data.parliament.uk/membersdataplatform/services/mnis/members/query/house=Lords" target="_blank">Lords</a>.
array
{"format":"int32","type":"integer"}
- parameters.uINs
-
The UIN for the question - note that UINs reset at the start of each Parliamentary session.
array
{"type":"integer","format":"int32"}
- parameters.answeringBodyIds
-
Which answering body is to respond. A list of answering bodies can be found <a target="_blank" href="http://data.parliament.uk/membersdataplatform/services/mnis/referencedata/AnsweringBodies/">here</a>.
array
{"format":"int32","type":"integer"}
- parameters.skip
-
The number of records to skip from the first, default is 0.
integer
format: int32
- parameters.take
-
The number of records to return, default is 25, maximum is 100.
integer
format: int32
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:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=WebService-UK-Parliament
CPAN Ratings
Search CPAN
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)