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)
| 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): |