Gets the studio managers. Keyword arguments: limit (int): Max amount of returned managers offset (int): Offset of the first returned manager. Returns: list : A list containing the studio managers as user objects
(self, limit=40, offset=0)
| 453 | ).json() |
| 454 | |
| 455 | def managers(self, limit=40, offset=0): |
| 456 | """ |
| 457 | Gets the studio managers. |
| 458 | |
| 459 | Keyword arguments: |
| 460 | limit (int): Max amount of returned managers |
| 461 | offset (int): Offset of the first returned manager. |
| 462 | |
| 463 | Returns: |
| 464 | list<scratchattach.user.User>: A list containing the studio managers as user objects |
| 465 | """ |
| 466 | response = commons.api_iterative( |
| 467 | f"https://api.scratch.mit.edu/studios/{self.id}/managers", limit=limit, offset=offset) |
| 468 | return commons.parse_object_list(response, user.User, self._session, "username") |
| 469 | |
| 470 | def host(self) -> user.User: |
| 471 | """ |
no outgoing calls