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

Method viewed_projects

scratchattach/site/user.py:746–760  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

744 )
745
746 def viewed_projects(self, limit=24, offset=0):
747 """
748 Returns:
749 list<projects.projects.Project>: The user&#x27;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 """

Callers

nothing calls this directly

Calls 1

_assert_permissionMethod · 0.95

Tested by

no test coverage detected