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

Method your_role

scratchattach/site/studio.py:591–601  ·  view source on GitHub ↗

Returns a dict with information about your role in the studio (whether you're following, curating, managing it or are invited)

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

test_studioFunction · 0.80

Calls 3

jsonMethod · 0.80
_assert_authMethod · 0.45
getMethod · 0.45

Tested by 1

test_studioFunction · 0.64