Trait slack_api::requests::SlackWebRequestSender
[−]
[src]
pub trait SlackWebRequestSender {
type Error: Error;
fn send(&self,
method: &str,
params: &[(&str, &str)])
-> Result<String, Self::Error>;
}Functionality for sending authenticated and unauthenticated requests to Slack via HTTP.
If you do not have a custom client to integrate with and just want to send requests, use
the [default_client()] function to get a simple request sender.
Associated Types
Required Methods
fn send(&self,
method: &str,
params: &[(&str, &str)])
-> Result<String, Self::Error>
method: &str,
params: &[(&str, &str)])
-> Result<String, Self::Error>
Make an API call to Slack. Takes a map of parameters that get appended to the request as query params.
Implementors
impl SlackWebRequestSender for Client