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

Method curators

scratchattach/site/studio.py:333–346  ·  view source on GitHub ↗

Gets the studio curators. Keyword arguments: limit (int): Max amount of returned curators. offset (int): Offset of the first returned curator. Returns: list : A list containing the studio curators as User objects

(self, limit=40, offset=0)

Source from the content-addressed store, hash-verified

331 return commons.parse_object_list(response, project.Project, self._session)
332
333 def curators(self, limit=40, offset=0) -> list[user.User]:
334 """
335 Gets the studio curators.
336
337 Keyword arguments:
338 limit (int): Max amount of returned curators.
339 offset (int): Offset of the first returned curator.
340
341 Returns:
342 list<scratchattach.user.User>: A list containing the studio curators as User objects
343 """
344 response = commons.api_iterative(
345 f"https://api.scratch.mit.edu/studios/{self.id}/curators", limit=limit, offset=offset)
346 return commons.parse_object_list(response, user.User, self._session, "username")
347
348
349 def invite_curator(self, curator):

Callers 1

test_studioFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_studioFunction · 0.64