MCPcopy Create free account
hub / github.com/slackapi/python-slack-sdk / api_call

Method api_call

slack_sdk/scim/v1/async_client.py:245–267  ·  view source on GitHub ↗
(
        self,
        *,
        http_verb: str,
        path: str,
        query_params: Optional[Dict[str, Any]] = None,
        body_params: Optional[Dict[str, Any]] = None,
        headers: Optional[Dict[str, str]] = None,
    )

Source from the content-addressed store, hash-verified

243 # -------------------------
244
245 async def api_call(
246 self,
247 *,
248 http_verb: str,
249 path: str,
250 query_params: Optional[Dict[str, Any]] = None,
251 body_params: Optional[Dict[str, Any]] = None,
252 headers: Optional[Dict[str, str]] = None,
253 ) -> SCIMResponse:
254 url = f"{self.base_url}{path}"
255 query = _build_query(query_params)
256 if len(query) > 0:
257 url += f"?{query}"
258 return await self._perform_http_request(
259 http_verb=http_verb,
260 url=url,
261 body_params=body_params,
262 headers=_build_request_headers(
263 token=self.token,
264 default_headers=self.default_headers,
265 additional_headers=headers,
266 ),
267 )
268
269 async def _perform_http_request(
270 self,

Callers 12

search_usersMethod · 0.95
read_userMethod · 0.95
create_userMethod · 0.95
patch_userMethod · 0.95
update_userMethod · 0.95
delete_userMethod · 0.95
search_groupsMethod · 0.95
read_groupMethod · 0.95
create_groupMethod · 0.95
patch_groupMethod · 0.95
update_groupMethod · 0.95
delete_groupMethod · 0.95

Calls 3

_perform_http_requestMethod · 0.95
_build_queryFunction · 0.70
_build_request_headersFunction · 0.70

Tested by

no test coverage detected