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

Method set_wiwo

scratchattach/site/user.py:788–799  ·  view source on GitHub ↗

Sets the user's "What I'm working on" section. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user`

(self, text)

Source from the content-addressed store, hash-verified

786 )
787
788 def set_wiwo(self, text):
789 """
790 Sets the user's "What I'm working on" section. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user`
791 """
792 # Teachers can also change your wiwo
793 # self._assert_permission()
794 requests.put(
795 f"https://scratch.mit.edu/site-api/users/all/{self.username}/",
796 headers=self._json_headers,
797 cookies=self._cookies,
798 json={"status": text},
799 )
800
801 def set_featured(self, project_id, *, label=""):
802 """

Callers

nothing calls this directly

Calls 1

putMethod · 0.80

Tested by

no test coverage detected