MCPcopy Index your code
hub / github.com/slackapi/python-slack-sdk / admin_apps_approve

Method admin_apps_approve

slack_sdk/web/client.py:112–140  ·  view source on GitHub ↗

Approve an app for installation on a workspace. Either app_id or request_id is required. These IDs can be obtained either directly via the app_requested event, or by the admin.apps.requests.list method. https://docs.slack.dev/reference/methods/admin.apps.approve

(
        self,
        *,
        app_id: Optional[str] = None,
        request_id: Optional[str] = None,
        enterprise_id: Optional[str] = None,
        team_id: Optional[str] = None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

110 return self.api_call("admin.analytics.getFile", params=kwargs)
111
112 def admin_apps_approve(
113 self,
114 *,
115 app_id: Optional[str] = None,
116 request_id: Optional[str] = None,
117 enterprise_id: Optional[str] = None,
118 team_id: Optional[str] = None,
119 **kwargs,
120 ) -> SlackResponse:
121 """Approve an app for installation on a workspace.
122 Either app_id or request_id is required.
123 These IDs can be obtained either directly via the app_requested event,
124 or by the admin.apps.requests.list method.
125 https://docs.slack.dev/reference/methods/admin.apps.approve
126 """
127 if app_id:
128 kwargs.update({"app_id": app_id})
129 elif request_id:
130 kwargs.update({"request_id": request_id})
131 else:
132 raise e.SlackRequestError("The app_id or request_id argument must be specified.")
133
134 kwargs.update(
135 {
136 "enterprise_id": enterprise_id,
137 "team_id": team_id,
138 }
139 )
140 return self.api_call("admin.apps.approve", params=kwargs)
141
142 def admin_apps_approved_list(
143 self,

Callers

nothing calls this directly

Calls 1

api_callMethod · 0.45

Tested by

no test coverage detected