NAME
WebService::UK::Parliament::WrittenQuestions - Query the UK Parliament Written Qu API
VERSION
Version 1.00
SYNOPSIS
use WebService::UK::Parliament::WrittenQuestions;
my $client = WebService::UK::Parliament::WrittenQuestions->new();
my $data = $client->$endpoint($params);
DESCRIPTION
The following documentation is automatically generated using the UK Parliament OpenAPI specification.
Data around written questions and answers, as well as written ministerial statements.
Sections
DailyReports
getdailyreportsdailyreports
Returns a list of daily reports
Method
get
Path
/api/dailyreports/dailyreports
Parameters
- dateFrom
-
Daily report with report date on or after the date specified. Date format yyyy-mm-dd
string
format: date-time
- dateTo
-
Daily report with report date on or before the date specified. Date format yyyy-mm-dd
string
format: date-time
- house
-
Daily report relating to the House specified. Defaults to Bicameral
string
Bicameral Commons Lords
- skip
-
Number of records to skip, default is 0
integer
format: int32
- take
-
Number of records to take, default is 20
integer
format: int32
WrittenQuestions
getwrittenquestionsquestions
Returns a list of written questions
Method
get
Path
/api/writtenquestions/questions
Parameters
- askingMemberId
-
Written questions asked by member with member ID specified
integer
format: int32
- answeringMemberId
-
Written questions answered by member with member ID specified
integer
format: int32
- tabledWhenFrom
-
Written questions tabled on or after the date specified. Date format yyyy-mm-dd
string
format: date-time
- tabledWhenTo
-
Written questions tabled on or before the date specified. Date format yyyy-mm-dd
string
format: date-time
- answered
-
Written questions that have been answered, unanswered or either.
string
Any Answered Unanswered
- answeredWhenFrom
-
Written questions answered on or after the date specified. Date format yyyy-mm-dd
string
format: date-time
- answeredWhenTo
-
Written questions answered on or before the date specified. Date format yyyy-mm-dd
string
format: date-time
- questionStatus
-
Written questions with the status specified
string
NotAnswered AnsweredOnly AllQuestions
- includeWithdrawn
-
Include written questions that have been withdrawn
boolean
- expandMember
-
Expand the details of Members in the results
boolean
- correctedWhenFrom
-
Written questions corrected on or after the date specified. Date format yyyy-mm-dd
string
format: date-time
- correctedWhenTo
-
Written questions corrected on or before the date specified. Date format yyyy-mm-dd
string
format: date-time
- searchTerm
-
Written questions / statements containing the search term specified, searches item content
string
- uIN
-
Written questions / statements with the uin specified
string
- answeringBodies
-
Written questions / statements relating to the answering bodies with the IDs specified
array
{"format":"int32","type":"integer"}
- members
-
Written questions / statements relating to the members with the IDs specified
array
{"format":"int32","type":"integer"}
- house
-
Written questions / statements relating to the House specified
string
Bicameral Commons Lords
- skip
-
Number of records to skip, default is 0
integer
format: int32
- take
-
Number of records to take, default is 20
integer
format: int32
getwrittenquestionsquestions1
Returns a written question
Method
get
Path
/api/writtenquestions/questions/{date}/{uin}
Parameters
- date
-
Written question on date specified
string
format: date-time
- uin
-
Written question with uid specified
string
- expandMember
-
Expand the details of Members in the results
boolean
getwrittenquestionsquestions1
Returns a written question
Method
get
Path
/api/writtenquestions/questions/{id}
Parameters
- id
-
written question with ID specified
integer
format: int32
- expandMember
-
Expand the details of Members in the result
boolean
WrittenStatements
getwrittenstatementsstatements
Returns a list of written statements
Method
get
Path
/api/writtenstatements/statements
Parameters
- madeWhenFrom
-
Written statements made on or after the date specified. Date format yyyy-mm-dd
string
format: date-time
- madeWhenTo
-
Written statements made on or before the date specified. Date format yyyy-mm-dd
string
format: date-time
- searchTerm
-
Written questions / statements containing the search term specified, searches item content
string
- uIN
-
Written questions / statements with the uin specified
string
- answeringBodies
-
Written questions / statements relating to the answering bodies with the IDs specified
array
{"type":"integer","format":"int32"}
- members
-
Written questions / statements relating to the members with the IDs specified
array
{"format":"int32","type":"integer"}
- house
-
Written questions / statements relating to the House specified
string
Bicameral Commons Lords
- skip
-
Number of records to skip, default is 0
integer
format: int32
- take
-
Number of records to take, default is 20
integer
format: int32
- expandMember
-
Expand the details of Members in the results
boolean
getwrittenstatementsstatements1
Returns a written statemnet
Method
get
Path
/api/writtenstatements/statements/{date}/{uin}
Parameters
- date
-
Written statement on date specified
string
format: date-time
- uin
-
Written statement with uid specified
string
- expandMember
-
Expand the details of Members in the results
boolean
getwrittenstatementsstatements1
Returns a written statement
Method
get
Path
/api/writtenstatements/statements/{id}
Parameters
- id
-
Written statement with ID specified
integer
format: int32
- expandMember
-
Expand the details of Members in the results
boolean
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)