(
self, *, query: str = "", mode: str = "trending", language: str = "en", limit: int = 40, offset: int = 0
)
| 675 | return commons.parse_object_list(response, project.Project, self) |
| 676 | |
| 677 | def search_studios( |
| 678 | self, *, query: str = "", mode: str = "trending", language: str = "en", limit: int = 40, offset: int = 0 |
| 679 | ) -> list[studio.Studio]: |
| 680 | query = f"&q={query}" if query else "" |
| 681 | |
| 682 | response = commons.api_iterative( |
| 683 | f"https://api.scratch.mit.edu/search/studios", |
| 684 | limit=limit, |
| 685 | offset=offset, |
| 686 | add_params=f"&language={language}&mode={mode}{query}", |
| 687 | ) |
| 688 | return commons.parse_object_list(response, studio.Studio, self) |
| 689 | |
| 690 | def explore_studios( |
| 691 | self, *, query: str = "", mode: str = "trending", language: str = "en", limit: int = 40, offset: int = 0 |
no outgoing calls