1 unstable release
0.1.0 | Jul 5, 2023 |
---|
#7 in #sony
80KB
1.5K
SLoC
bravia-api-rs
Rust wrapper for Sony Bravia APIs.
This project is unofficial and not related in any way to Sony.
Usage
Add the following to your Cargo.toml:
[dependencies]
bravia_api = "0.1"
Then you can use it like this:
let bravia = Bravia::new("ADDRESS", Some("PASSWORD")).await?;
bravia.service_name().api_name().await?
where:
- "ADDRESS" is the address of your server
- "PASSWORD" is optional and only needed when the authentication level is not "None"
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
lib.rs
:
Rust wrapper for Sony Bravia APIs.
This project is unofficial and not related in any way to Sony.
This documentation is mainly inspired by the official one.
Usage
let bravia = Bravia::new("ADDRESS", Some("PASSWORD")).await?;
// Then you can access the API services and their APIs like this:
// bravia.service_name().api_name().await;
// For example to use version 1.1 of the getCurrentTime API from the system service:
bravia.system().get_current_time(Some("1.1")).await?;
Dependencies
~6–17MB
~250K SLoC