Struct rvk::api::APIClient [−][src]
pub struct APIClient { /* fields omitted */ }
An API client used to call API methods
Methods
impl APIClient
[src]
impl APIClient
pub fn new(token: String) -> APIClient
[src]
pub fn new(token: String) -> 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.
See reqwest docs for more information.
pub fn call_method(&self, method_name: &str, params: Params) -> Result<Value>
[src]
pub fn call_method(&self, method_name: &str, params: Params) -> Result<Value>
Calls an API method, given its name and parameters