Struct slack_chat_api::apps_permissions::AppsPermissions
source · pub struct AppsPermissions {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl AppsPermissions
impl AppsPermissions
sourcepub async fn info(&self) -> Result<AppsPermissionsInfoSchema>
pub async fn info(&self) -> Result<AppsPermissionsInfoSchema>
This function performs a GET to the /apps.permissions.info endpoint.
Returns list of permissions this app has on a team.
FROM: https://api.slack.com/methods/apps.permissions.info
Parameters:
token: &str– Authentication token. Requires scope:none.
sourcepub async fn request(
&self,
scopes: &str,
trigger_id: &str
) -> Result<DndEndSchema>
pub async fn request( &self, scopes: &str, trigger_id: &str ) -> Result<DndEndSchema>
This function performs a GET to the /apps.permissions.request endpoint.
Allows an app to request additional scopes
FROM: https://api.slack.com/methods/apps.permissions.request
Parameters:
token: &str– Authentication token. Requires scope:none.scopes: &str– A comma separated list of scopes to request for.trigger_id: &str– Token used to trigger the permissions API.