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

Adding support for Microsofts new Friend system

Open vertyco opened this issue 1 year ago • 2 comments

Apparently there is the following system AND a friend request system now.

Following someone is not the same thing as adding them as a friend now, which has completely broken some automation I've been using this package for. Has anyone run into this issue already?

I know its pretty recent and this repo doesn't see a lot of updates, but I work as a dev for a living so if anyone knows what the endpoints are I'd be happy to make a PR for this, I just cannot find any info on it yet.

vertyco avatar Nov 08 '24 14:11 vertyco

It seems to send a friend request, the endpoint would be:

PUT https://social.xboxlive.com/users/xuid(CLIENTXUID)/people/friends/v2/xuid(TARGETXUID)

with no data in the body

To revoke a friend request, or unadd somebody it would just be a DELETE request.

For a follow request it would be:

PUT https://social.xboxlive.com/users/xuid(CLIENTXUID)/people/xuid(TARGETXUID)

with no data in the body

Sat727 avatar Nov 19 '24 14:11 Sat727

Thanks for the response, I ended up figuring out what the new endpoints were and just subclassing the xbox client class for now

vertyco avatar Nov 21 '24 02:11 vertyco