Skip to content

mikaeldui/united-kingdom-parliament-dotnet-client

Repository files navigation

United Kingdom Parliament .NET Client

.NET CodeQL Analysis

A .NET Client for the UK Partliament's API at https://explore.data.parliament.uk/.

You can install it using the following .NET CLI command:

dotnet add package MikaelDui.UnitedKingdom.Parliament.Client --version *

Example

Write the titles of the 20 latest commons division in the console.

using ParliamentClient client = new();
var result = await client.Commons.Divisions.GetDivisionsAsync(options =>
{
    options.PageSize = 20;
    options.Sort.Add("-date");
});

foreach (var division in result.Items)
    Console.WriteLine(division.Title);

About

The UK Parliament has two Houses that work on behalf of UK citizens to check and challenge the work of Government, make and shape effective laws, and debate/make decisions on the big issues of the day.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Languages