Struct aruba_ripple::Client
[−]
[src]
pub struct Client { // some fields omitted }
Airwave API Client
Methods
impl Client
fn new<S: Into<String>>(origin: S) -> Self
Creates a new API client.
fn with_client<S: Into<String>>(origin: S, hyper_client: Client) -> Self
Creates a new API client, with a provided Hyper client. This is useful for having the option of changing settings such as timeouts.
fn login(&mut self, username: &str, password: &str) -> Result<Response, Error>
Logs into the Airwave API.
fn get(&self, path: &str, query: Option<&str>) -> Result<Response, Error>
Runs a get request against the Airwave API.