-
Notifications
You must be signed in to change notification settings - Fork 17
Mark userId nullable (Breaking Change) #85
base: master
Are you sure you want to change the base?
Conversation
|
{
"profiles": [
{
"profileId": "d3dde2ca-7c92-468e-89b4-9dab253225ce",
"userId": "c4fdcaf8-3282-45ec-826b-8f91b4dd1794",
"platformType": "psn",
"idOnPlatform": "2072355385337540186",
"nameOnPlatform": "AreYouAhueliTut"
}
]
}For second case it does indeed returns |
|
I took the PSN example from my Postman collection, it is outdated. But null is still possible, and it should be represented in types. |
|
Is there a reason we use |
|
Ubisoft doesn't proxy platform avatar behind |
|
I went down a rabbit hole, even more lost now. How does r6tracker displays pfp for this user: https://r6.tracker.network/profile/xbox/Mono%20wins |
|
Looks like they're using some Xbox API to retrieve platform avatar by |
In rare cases
userIdisnull. I'm usure why but it seems to represent a linked account which doesn't started a game.Raw API response to
nameOnPlatformsearch:{ "profileId": "d3dde2ca-7c92-468e-89b4-9dab253225ce", "userId": null, "platformType": "psn", "idOnPlatform": "2072355385337540186", "nameOnPlatform": "AreYouAhueliTut" }Library response to
idOnPlatformsearch:{ "id": "07c8acb0-542a-4ad0-b0b0-0a714e346584", "userId": null, "idOnPlatform": "76561198106338458", "platform": "steam", "nameOnPlatform": "76561198106338458", "avatar": { "146": "https://ubisoft-avatars.akamaized.net/null/default_146_146.png", "256": "https://ubisoft-avatars.akamaized.net/null/default_256_256.png", "500": "https://ubisoft-avatars.akamaized.net/null/default_tall.png" } }