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

Method share

scratchattach/site/project.py:617–626  ·  view source on GitHub ↗

Shares the project. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`

(self)

Source from the content-addressed store, hash-verified

615 self.set_fields(data)
616
617 def share(self):
618 """
619 Shares the project. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`
620 """
621 self._assert_permission()
622 requests.put(
623 f"https://api.scratch.mit.edu/proxy/projects/{self.id}/share/",
624 headers=self._json_headers,
625 cookies=self._cookies,
626 )
627
628 def unshare(self):
629 """

Callers

nothing calls this directly

Calls 2

_assert_permissionMethod · 0.95
putMethod · 0.80

Tested by

no test coverage detected