Struct authy::Client
[−]
[src]
pub struct Client { pub retry_count: u8, pub retry_wait: u16, // some fields omitted }
Fields
retry_count: u8
retry_wait: u16
Methods
impl Client
[src]
fn new(api_url: &str, api_key: &str) -> Client
fn get(&self,
prefix: &str,
path: &str,
url_params: Option<Vec<(String, String)>>)
-> Result<(Status, Value), AuthyError>
prefix: &str,
path: &str,
url_params: Option<Vec<(String, String)>>)
-> Result<(Status, Value), AuthyError>
fn post(&self,
prefix: &str,
path: &str,
url_params: Option<Vec<(String, String)>>,
post_params: Option<Vec<(String, String)>>)
-> Result<(Status, Value), AuthyError>
prefix: &str,
path: &str,
url_params: Option<Vec<(String, String)>>,
post_params: Option<Vec<(String, String)>>)
-> Result<(Status, Value), AuthyError>