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

Method set_bio

scratchattach/site/user.py:775–786  ·  view source on GitHub ↗

Sets the user's "About me" 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

773 )
774
775 def set_bio(self, text):
776 """
777 Sets the user's "About me" section. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user`
778 """
779 # Teachers can set bio! - Should update this method to check for that
780 # self._assert_permission()
781 requests.put(
782 f"https://scratch.mit.edu/site-api/users/all/{self.username}/",
783 headers=self._json_headers,
784 cookies=self._cookies,
785 json={"bio": text},
786 )
787
788 def set_wiwo(self, text):
789 """

Callers

nothing calls this directly

Calls 1

putMethod · 0.80

Tested by

no test coverage detected