def session_recording(self, request: Request, *args: Any, **kwargs: Any) -> Response: # type: ignore if not request.GET.get("session_recording_id"): return Response( { "detail": "The query parameter session_recording_id is required for this endpoint.", "type": "validation_error", "code": "invalid", }, status=400, ) session_recording = SessionRecording( request=request, team=self.team, filter=Filter(request=request, team=self.team), session_recording_id=request.GET["session_recording_id"], ).run() if request.GET.get("save_view"): SessionRecordingViewed.objects.get_or_create( team=self.team, user=request.user, session_id=request.GET["session_recording_id"]) return Response({"result": session_recording})
def session_recording(self, request: Request, *args: Any, **kwargs: Any) -> Response: team = self.team snapshots = SessionRecording().run( team=team, filter=Filter(request=request), session_recording_id=request.GET.get("session_recording_id") ) return Response({"result": snapshots})
def session_recording(self, request: Request, *args: Any, **kwargs: Any) -> Response: session_recording = SessionRecording().run( team=self.team, filter=Filter(request=request), session_recording_id=request.GET["session_recording_id"]) return Response({"result": session_recording})
def session_recording(self, request: Request, *args: Any, **kwargs: Any) -> Response: session_recording = SessionRecording().run( team=self.team, filter=Filter(request=request), session_recording_id=request.GET["session_recording_id"] ) if request.GET.get("save_view"): SessionRecordingViewed.objects.get_or_create( team=self.team, user=request.user, session_id=request.GET["session_recording_id"] ) return Response({"result": session_recording})