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)
| 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 | """ |