(self, request, *args, **kwargs)
| 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 | |
| 64 | class SlackEnvironmentViewSet(EnvironmentIntegrationCommonViewSet): |
nothing calls this directly
no test coverage detected