vrcx-team / VRCX

Friendship management tool for VRChat
MIT License
960 stars 180 forks source link

[Feature Request] Current avatar author #15

Closed Myrkie closed 4 years ago

Myrkie commented 4 years ago

Option to find the author of the current avatar someone is using

Fusl commented 4 years ago

I think that this is not possible without exploiting any parts of the API or accessing a non-public API endpoint since the VRCX only accesses the API and Websocket part of VRChat and the User API does not include the avatar ID, only the thumbnail and image URLs which don't contain the Avatar ID itself.

Myrkie commented 4 years ago

I think that this is not possible without exploiting any parts of the API or accessing a non-public API endpoint since the VRCX only accesses the API and Websocket part of VRChat and the User API does not include the avatar ID, only the thumbnail and image URLs which don't contain the Avatar ID itself.

that makes absolutely no sense, you can view an avatars author within vrchat by selecting someone with the quick menu and clicking "show avatar author"

Fusl commented 4 years ago

Correct, that's possible with the official VRChat client, but VRCX is not a client mod. It's a standalone application and uses the API which has some features removed and some other features added that the official client does (not) support.

Myrkie commented 4 years ago

Correct, that's possible with the official VRChat client, but VRCX is not a client mod. It's a standalone application and uses the API which has some features removed and some other features added that the official client does (not) support.

True but its still possible as it was done with a script on the VRCHAT.NET website but that script hasn't been updated for the new layout so it doesnt work anymore for reference the script is located here (https://greasyfork.org/en/scripts/376747-vrchat-littleone) on a profile you could see if a player was the avatar maker if not it would re direct you to the profile of the creator

pypy-vrc commented 4 years ago

Oh thank you for the good idea. And that's probably possible.

Someone's current avatar ID cannot be found in the usual way. However, the avatar image URL is public.

Here, someone's avatar image URL https://api.vrchat.cloud/api/1/file/file_8d8d1657-37a5-4632-a27a-f98a0ffbb4f8/3/file

Then, cut the back part and request the URL as https://api.vrchat.cloud/api/1/file/file_8d8d1657-37a5-4632-a27a-f98a0ffbb4f8

{"id":"file_8d8d1657-37a5-4632-a27a-f98a0ffbb4f8","name":"Avatar - Ukon_Yukata - Image - 5․6․3p1_3_standalonewindows_Release","ownerId":"usr_b707e556-da24-4892-8ad5-9e148bf6cb1f","mimeType":"image/png","extension":".png","versions":[...]}

In the returned JSON, ownerId becomes authorId

pypy-vrc commented 4 years ago

Available in v2019.10.31 (b5cd4b3184811380a9aa2771ba1e7359e4b779ec)

Myrkie commented 4 years ago

thanks mina ❤️