sobry-api
An asynchronous Rust client for the Sobry electricity price API v2, made by SiSol PRO, a good french company that helps you create "Opérations d'autoconsommation collectives (ACC)" in France :).
use NaiveDate;
use ;
async
The key is sent as a sensitive Authorization: Bearer ... header and is redacted from the client's debug output. It identifies one Sobry contract and needs the price:read scope.
The API accepts a maximum days value of 10. Since the range is inclusive, days(3) returns the first day through J+3 (four days total).
Run the included example with:
SOBRY_API_KEY=sob_apikey_...
Set SOBRY_DAY=YYYY-MM-DD to request a particular starting date; otherwise the API uses today.
License
Licensed under either Apache License 2.0 or MIT, at your option.