MCPcopy
hub / github.com/PostHog/posthog / content

Method content

posthog/api/integration.py:66–81  ·  view source on GitHub ↗
(self, request: Request, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

64
65 @action(methods=["GET"], detail=True, url_path="channels")
66 def content(self, request: Request, *args: Any, **kwargs: Any) -> Response:
67 instance = self.get_object()
68
69 slack = SlackIntegration(instance)
70 channels = [
71 {
72 "id": channel["id"],
73 "name": channel["name"],
74 "is_private": channel["is_private"],
75 "is_member": channel["is_member"],
76 "is_ext_shared": channel["is_ext_shared"],
77 }
78 for channel in slack.list_channels()
79 ]
80
81 return Response({"channels": channels})

Callers

nothing calls this directly

Calls 3

list_channelsMethod · 0.95
SlackIntegrationClass · 0.90
get_objectMethod · 0.45

Tested by

no test coverage detected