Shares the project. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`
(self)
| 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 | """ |
nothing calls this directly
no test coverage detected