Skip to content

C# client library for the official API of the Parliament of the Republic of Poland (Sejm) available at api.sejm.gov.pl

License

Notifications You must be signed in to change notification settings

piotrstenke/SejmNet

Repository files navigation

Sejm logo

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.

About

C# client library for the official API of the Parliament of the Republic of Poland (Sejm) available at api.sejm.gov.pl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages