pub struct Reminders {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Reminders
impl Reminders
Sourcepub async fn add(&self) -> Result<Response<RemindersAddSchema>, ClientError>
pub async fn add(&self) -> Result<Response<RemindersAddSchema>, ClientError>
This function performs a POST to the /reminders.add endpoint.
Creates a reminder.
FROM: https://api.slack.com/methods/reminders.add
Parameters:
token: &str– Authentication token. Requires scope:reminders:write.
Sourcepub async fn complete(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn complete(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /reminders.complete endpoint.
Marks a reminder as complete.
FROM: https://api.slack.com/methods/reminders.complete
Parameters:
token: &str– Authentication token. Requires scope:reminders:write.
Sourcepub async fn delete(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn delete(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /reminders.delete endpoint.
Deletes a reminder.
FROM: https://api.slack.com/methods/reminders.delete
Parameters:
token: &str– Authentication token. Requires scope:reminders:write.
Sourcepub async fn info(
&self,
reminder: &str,
) -> Result<Response<RemindersAddSchema>, ClientError>
pub async fn info( &self, reminder: &str, ) -> Result<Response<RemindersAddSchema>, ClientError>
This function performs a GET to the /reminders.info endpoint.
Gets information about a reminder.
FROM: https://api.slack.com/methods/reminders.info
Parameters:
token: &str– Authentication token. Requires scope:reminders:read.reminder: &str– The ID of the reminder.
Sourcepub async fn list(&self) -> Result<Response<RemindersListSchema>, ClientError>
pub async fn list(&self) -> Result<Response<RemindersListSchema>, ClientError>
This function performs a GET to the /reminders.list endpoint.
Lists all reminders created by or for a given user.
FROM: https://api.slack.com/methods/reminders.list
Parameters:
token: &str– Authentication token. Requires scope:reminders:read.