Struct slack_chat_api::calls::Calls
source · pub struct Calls {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl Calls
impl Calls
sourcepub async fn add(&self) -> Result<DndEndSchema>
pub async fn add(&self) -> Result<DndEndSchema>
This function performs a POST to the /calls.add endpoint.
Registers a new Call.
FROM: https://api.slack.com/methods/calls.add
Parameters:
token: &str– Authentication token. Requires scope:calls:write.
sourcepub async fn end(&self) -> Result<DndEndSchema>
pub async fn end(&self) -> Result<DndEndSchema>
This function performs a POST to the /calls.end endpoint.
Ends a Call.
FROM: https://api.slack.com/methods/calls.end
Parameters:
token: &str– Authentication token. Requires scope:calls:write.
sourcepub async fn info(&self, id: &str) -> Result<DndEndSchema>
pub async fn info(&self, id: &str) -> Result<DndEndSchema>
This function performs a GET to the /calls.info endpoint.
Returns information about a Call.
FROM: https://api.slack.com/methods/calls.info
Parameters:
token: &str– Authentication token. Requires scope:calls:read.id: &str–idof the Call returned by thecalls.addmethod.
sourcepub async fn update(&self) -> Result<DndEndSchema>
pub async fn update(&self) -> Result<DndEndSchema>
This function performs a POST to the /calls.update endpoint.
Updates information about a Call.
FROM: https://api.slack.com/methods/calls.update
Parameters:
token: &str– Authentication token. Requires scope:calls:write.