Returns a dict with information about your role in the studio (whether you're following, curating, managing it or are invited)
(self)
| 589 | ).json() |
| 590 | |
| 591 | def your_role(self) -> StudioRoleDict: |
| 592 | """ |
| 593 | Returns a dict with information about your role in the studio (whether you're following, curating, managing it or are invited) |
| 594 | """ |
| 595 | self._assert_auth() |
| 596 | return requests.get( |
| 597 | f"https://api.scratch.mit.edu/studios/{self.id}/users/{self._session.username}", |
| 598 | headers=self._headers, |
| 599 | cookies=self._cookies, |
| 600 | timeout=10, |
| 601 | ).json() |
| 602 | |
| 603 | def get_exact_project_count(self) -> int: |
| 604 | """ |