Struct pwr_airly::AirlyClient
source · pub struct AirlyClient { /* private fields */ }
Implementations§
source§impl AirlyClient
impl AirlyClient
sourcepub fn new<K: Into<String>>(key: K) -> AirlyClient
pub fn new<K: Into<String>>(key: K) -> AirlyClient
Creates a new instance of the AirlyClient
.
To connect to the Airly’s API you’ll need your own API key, which you can obtain by registering at https://developer.airly.eu (it’s free!).
Example
let airly = AirlyClient::new("my-api-key");