xbox-webapi-python icon indicating copy to clipboard operation
xbox-webapi-python copied to clipboard

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

Open xences-valid opened this issue 2 years ago • 0 comments

        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?

xences-valid avatar Apr 23 '23 17:04 xences-valid