Struct slack_chat_api::admin_apps::AdminApps
source · pub struct AdminApps {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl AdminApps
impl AdminApps
sourcepub async fn approve(&self) -> Result<DndEndSchema>
pub async fn approve(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.apps.approve endpoint.
Approve an app for installation on a workspace.
FROM: https://api.slack.com/methods/admin.apps.approve
Parameters:
token: &str– Authentication token. Requires scope:admin.apps:write.
sourcepub async fn restrict(&self) -> Result<DndEndSchema>
pub async fn restrict(&self) -> Result<DndEndSchema>
This function performs a POST to the /admin.apps.restrict endpoint.
Restrict an app for installation on a workspace.
FROM: https://api.slack.com/methods/admin.apps.restrict
Parameters:
token: &str– Authentication token. Requires scope:admin.apps:write.