MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / list

Method list

api/integrations/slack/views.py:52–61  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

50 return config.api_token # type: ignore[no-any-return]
51
52 def list(self, request, *args, **kwargs): # type: ignore[no-untyped-def]
53 api_token = self.get_api_token()
54 q_param_serializer = SlackChannelListQueryParamSerializer(data=request.GET)
55 q_param_serializer.is_valid(raise_exception=True)
56 slack_wrapper = SlackWrapper(api_token=api_token)
57 channel_data_response = slack_wrapper.get_channels_data(
58 **q_param_serializer.validated_data
59 )
60 serializer = self.get_serializer(channel_data_response)
61 return Response(serializer.data)
62
63
64class SlackEnvironmentViewSet(EnvironmentIntegrationCommonViewSet):

Callers

nothing calls this directly

Calls 5

get_api_tokenMethod · 0.95
get_channels_dataMethod · 0.95
SlackWrapperClass · 0.90
is_validMethod · 0.80

Tested by

no test coverage detected