Returns: list : The user's recently viewed projects You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user`
(self, limit=24, offset=0)
| 744 | ) |
| 745 | |
| 746 | def viewed_projects(self, limit=24, offset=0): |
| 747 | """ |
| 748 | Returns: |
| 749 | list<projects.projects.Project>: The user's recently viewed projects |
| 750 | |
| 751 | You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user` |
| 752 | """ |
| 753 | self._assert_permission() |
| 754 | _projects = commons.api_iterative( |
| 755 | f"https://api.scratch.mit.edu/users/{self.username}/projects/recentlyviewed", |
| 756 | limit=limit, |
| 757 | offset=offset, |
| 758 | _headers=self._headers, |
| 759 | ) |
| 760 | return commons.parse_object_list(_projects, project.Project, self._session) |
| 761 | |
| 762 | def set_pfp(self, image: bytes): |
| 763 | """ |
nothing calls this directly
no test coverage detected