MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / connect_studio

Method connect_studio

scratchattach/site/session.py:1166–1176  ·  view source on GitHub ↗

Gets a studio using this session, connects the session to the Studio object to allow authenticated actions Args: studio_id (int): ID of the requested studio Returns: scratchattach.studio.Studio: An object that represents the requested studio and all

(self, studio_id)

Source from the content-addressed store, hash-verified

1164 return self._make_linked_object("id", int(project_id), project.Project, exceptions.ProjectNotFound)
1165
1166 def connect_studio(self, studio_id) -> studio.Studio:
1167 """
1168 Gets a studio using this session, connects the session to the Studio object to allow authenticated actions
1169
1170 Args:
1171 studio_id (int): ID of the requested studio
1172
1173 Returns:
1174 scratchattach.studio.Studio: An object that represents the requested studio and allows you to perform actions on the studio (like studio.follow)
1175 """
1176 return self._make_linked_object("id", int(studio_id), studio.Studio, exceptions.StudioNotFound)
1177
1178 def connect_classroom(self, class_id) -> classroom.Classroom:
1179 """

Callers 4

create_studioMethod · 0.95
handle_nocmdFunction · 0.80
test_commentFunction · 0.80
test_studioFunction · 0.80

Calls 1

_make_linked_objectMethod · 0.95

Tested by 2

test_commentFunction · 0.64
test_studioFunction · 0.64