You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defget_codingamer_followers(self, id: int) ->typing.List[Follower]:
# TODO fix this to use [id, logged_in.id, None]returnself.request("CodinGamer", "findFollowers", [id, id, None])
defget_codingamer_following(self, id: int) ->typing.List[Following]:
# TODO fix this to use [id, logged_in.id]returnself.request("CodinGamer", "findFollowing", [id, id])
takos22
changed the title
[FR] Use ID of the logged in user for follower endpoints
[FEAT] Use ID of the logged in user for follower endpoints
Feb 12, 2023
Related problem
Only the followers and follows of the logged in CodinGamer can be accessed with
CodinGamer.get_followers
andCodinGamer.get_followed
.Wanted solution
Being able to access anyone's followers and follows, the 2nd parameter to the API in
HTTPClient.get_codingamer_followers
andHTTPClient.get_codingamer_following
need to be updated toself.state.codingamer.id
Considered alternatives
Using
CodinGamer.get_followers_ids
andCodinGamer.get_followed_ids
, but that would be slower as it requires way more requests to the API.Additional context
None
The text was updated successfully, but these errors were encountered: