Struct slack_chat_api::auth::Auth
source · pub struct Auth {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl Auth
impl Auth
sourcepub async fn revoke(&self, test: bool) -> Result<AuthRevokeSchema>
pub async fn revoke(&self, test: bool) -> Result<AuthRevokeSchema>
This function performs a GET to the /auth.revoke endpoint.
Revokes a token.
FROM: https://api.slack.com/methods/auth.revoke
Parameters:
token: &str– Authentication token. Requires scope:none.test: bool– Setting this parameter to1triggers a testing mode where the specified token will not actually be revoked.
sourcepub async fn test(&self) -> Result<AuthTestSuccessSchema>
pub async fn test(&self) -> Result<AuthTestSuccessSchema>
This function performs a GET to the /auth.test endpoint.
Checks authentication & identity.
FROM: https://api.slack.com/methods/auth.test
Parameters:
token: &str– Authentication token. Requires scope:none.