Struct rvk::api::APIClient [−][src]
pub struct APIClient<'a> { /* fields omitted */ }
An API client used to call API methods
Methods
impl<'a> APIClient<'a>
[src]
impl<'a> APIClient<'a>
pub fn new(token: &str) -> APIClient
[src]
pub fn new(token: &str) -> APIClient
Creates a new APIClient
, given an access token
Panics
This method panics if native TLS backend cannot be created or initialized by the reqwest
crate.
pub fn call_method(&self, method_name: &str, params: Params<'a>) -> APIResponse
[src]
pub fn call_method(&self, method_name: &str, params: Params<'a>) -> APIResponse
Calls an API method, given its name and parameters