slack_chat_api/
apps_permissions_scopes.rs

1use crate::Client;
2use crate::ClientResult;
3
4pub struct AppsPermissionsScopes {
5    pub client: Client,
6}
7
8impl AppsPermissionsScopes {
9    #[doc(hidden)]
10    pub fn new(client: Client) -> Self {
11        AppsPermissionsScopes { client }
12    }
13
14    /**
15     * This function performs a `GET` to the `/apps.permissions.scopes.list` endpoint.
16     *
17     * Returns list of scopes this app has on a team.
18     *
19     * FROM: <https://api.slack.com/methods/apps.permissions.scopes.list>
20     *
21     * **Parameters:**
22     *
23     * * `token: &str` -- Authentication token. Requires scope: `none`.
24     */
25    pub async fn list(
26        &self,
27    ) -> ClientResult<crate::Response<crate::types::ApiPermissionsScopesListSuccessSchema>> {
28        let url = self.client.url("/apps.permissions.scopes.list", None);
29        self.client
30            .get(
31                &url,
32                crate::Message {
33                    body: None,
34                    content_type: None,
35                },
36            )
37            .await
38    }
39}