Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/pythonxbox/api/provider/people/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ async def get_friends_by_xuid(
**kwargs,
) -> PeopleResponse:
"""
Get friendlist of own profile
Get friendlist of a user by their XUID

Args:
xuid: XUID of the user to get friends from

Returns:
:class:`PeopleResponse`: People Response
Expand All @@ -85,7 +88,7 @@ async def get_friends_by_xuid(
]
decoration = self.SEPERATOR.join(decoration_fields)

url = f"{self.PEOPLE_URL}/users/me/people/xuids({xuid})/decoration/{decoration}"
url = f"{self.PEOPLE_URL}/users/xuid({xuid})/people/friends/decoration/{decoration}"
resp = await self.client.session.get(url, headers=self._headers, **kwargs)
resp.raise_for_status()
return PeopleResponse.model_validate_json(resp.text)
Expand Down
Loading