Unfollows the user represented by the User object. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user`
(self)
| 967 | ) |
| 968 | |
| 969 | def unfollow(self): |
| 970 | """ |
| 971 | Unfollows the user represented by the User object. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_user` |
| 972 | """ |
| 973 | self._assert_auth() |
| 974 | requests.put( |
| 975 | f"https://scratch.mit.edu/site-api/users/followers/{self.username}/remove/?usernames={self._session._username}", |
| 976 | headers=headers, |
| 977 | cookies=self._cookies, |
| 978 | ) |
| 979 | |
| 980 | def delete_comment(self, *, comment_id): |
| 981 | """ |
nothing calls this directly
no test coverage detected