SejmNet 1.0.0
dotnet add package SejmNet --version 1.0.0
NuGet\Install-Package SejmNet -Version 1.0.0
<PackageReference Include="SejmNet" Version="1.0.0" />
paket add SejmNet --version 1.0.0
#r "nuget: SejmNet, 1.0.0"
// Install SejmNet as a Cake Addin #addin nuget:?package=SejmNet&version=1.0.0 // Install SejmNet as a Cake Tool #tool nuget:?package=SejmNet&version=1.0.0
SejmNet
SejmNet is a C# production-ready client library for the official API of the Parliament of the Republic of Poland (Sejm) available at https://api.sejm.gov.pl.
Supported platforms
Currently, the package supports .NET 8 or later.
Usage
To get access to the API, simply create a new instance of SejmNet.SejmClient and call an appropriate method.
using SejmNet;
using SejmNet.Models;
SejmClient client = new();
// Returns information about all clubs in the 10th term of the parliament.
Club[] clubs = client.GetClubs(10);
// Returns information about a parliament member with ID 148 in the 10th term of the parliament.
ParliamentMember? member = client.GetMember(10, 148);
Known issues
ISejmClient.GetPrints() - /sejm/term{term}/prints - tends to have EXTREMALY low performance (like, requests can last for literal minutes), using this method should be avoided if possible.
ISejmClient.GetPrints() - /sejm/term{term}/prints - the 'sort_by' parameter is not supported by the library, as it does not seem to work.
IEliSejmClient - /eli/changes/acts - this action is not implemented, it seems like it doesn't work properly.
Contributing
Contributions are more than welcome, feel free to open a new issue or create a pull request.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 229 | 12/3/2023 |