OpenXbox / xbox-webapi-python

A python library to authenticate with Xbox Live via your Microsoft Account and provides Xbox related Web-API.
https://pypi.python.org/pypi/xbox-webapi
MIT License
177 stars 45 forks source link

Trying to fetch friend list, but keeps returning a Forbidden response #94

Open xences-valid opened 1 year ago

xences-valid commented 1 year ago
        profile = await xbl_client.profile.get_profile_by_gamertag("Saa")
        xuid = profile.profile_users[0].id
        try:
            friendlist = await xbl_client.people.get_friends_by_xuid(xuid)
        except ClientResponseError as e:
            print(f"Failed to fetch friend list: {e}")

profile works, the request works it's only the friendlist object im having a problem with because it just gives me a forbidden response. any help?