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

Method add_studio

scratchattach/site/classroom.py:280–288  ·  view source on GitHub ↗
(self, name: str, description: str = '')

Source from the content-addressed store, hash-verified

278 raise e
279
280 def add_studio(self, name: str, description: str = '') -> None:
281 self._check_session()
282 requests.post("https://scratch.mit.edu/classes/create_classroom_gallery/",
283 json={
284 "classroom_id": str(self.id),
285 "classroom_token": self.classtoken,
286 "title": name,
287 "description": description},
288 headers=self._headers, cookies=self._cookies)
289
290 def reopen(self) -> None:
291 self._check_session()

Callers

nothing calls this directly

Calls 2

_check_sessionMethod · 0.95
postMethod · 0.80

Tested by

no test coverage detected