[PR #103] fix(people): correct friends list API endpoint for target users #103

Open
opened 2026-02-28 01:19:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tr4nt0r/python-xbox/pull/103
Author: @misiektoja
Created: 2/26/2026
Status: 🔄 Open

Base: mainHead: friends-list-fix-v2


📝 Commits (1)

  • 66b9776 fix(people): correct friends list API endpoint for target users

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/pythonxbox/api/provider/people/__init__.py (+1 -1)

📄 Description

The get_friends_by_xuid method was incorrectly routing to /users/me/people/xuids({xuid})/ which only checks the relationship between the authenticated user and the target, returning empty data (0 friends) if they aren't mutual friends.
This fixes the URL path to /users/xuid({xuid})/people/friends/ as in Xbox Android app, correctly utilizing Xbox Live Contract v7 to fetch a target user's friends list.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/tr4nt0r/python-xbox/pull/103 **Author:** [@misiektoja](https://github.com/misiektoja) **Created:** 2/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `friends-list-fix-v2` --- ### 📝 Commits (1) - [`66b9776`](https://github.com/tr4nt0r/python-xbox/commit/66b97765b98762b44167970aeaae9cbf37135132) fix(people): correct friends list API endpoint for target users ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/pythonxbox/api/provider/people/__init__.py` (+1 -1) </details> ### 📄 Description The `get_friends_by_xuid` method was incorrectly routing to `/users/me/people/xuids({xuid})/` which only checks the relationship between the authenticated user and the target, returning empty data (0 friends) if they aren't mutual friends. This fixes the URL path to `/users/xuid({xuid})/people/friends/` as in Xbox Android app, correctly utilizing Xbox Live Contract v7 to fetch a target user's friends list. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/python-xbox#103
No description provided.