EskomSePush API
This Rust library is an unofficial library to the EskomSePush API
TODO
- Improve docs
- Add enum types where relevant
- Improve error types
- Add examples
- Allow option for getting API key from environment variables
- Features to control sync and async functionality
- Add unit tests
- Improve status struct to allow for more flexible structure for future proofing (Towns/cities with different loadshedding schedule might be added in the future)
- Add helper functions
- Restucture code based on this article by Gitlab crate maintainers Designing Rust bindings for REST APIs
Breaking Changes
- You can now just build the URL without using one of the preconfigured http clients and use your preferred one instead
- The preconfigured clients are now all locked behind features
- A
ureqclient has been added but requires theureqfeature to be enabled - There are response handlers available for both
ureqandreqwesthttp clients - There are builders for each URL endpoint so you just need to use what you need
Examples
You can view the examples here
Contributions
Contributions and PR's are welcome.