|
38 | 38 | If you want to use the developer tools on browsers with it, you can see that whenever you attempt to access the page of an avatar, the following is accessed: |
39 | 39 | <code>https://vrchat.com/api/1/avatars/[avatarid]</code> |
40 | 40 |
|
41 | | -Whenever this is accessed, a response is given, giving you information on who made the avatar (their in game name and id), the avatar's description, when it |
| 41 | +Whenever this is accessed, a response is given, giving you information on who made the avatar (their in-game name and id), the avatar's description, when it |
42 | 42 | was made, the name of the avatar, and more. Funny enough, the information one is looking for will not be found here. |
43 | 43 |
|
44 | 44 |
|
|
96 | 96 |
|
97 | 97 |
|
98 | 98 | Now, some people may have TFA on their account (and you might have set it up on this account). As such, we can specific an extra chunk of code to |
99 | | -account for this (note this will only accept the 6 digit long codes typically seen on authentication apps) note the |
100 | | -<code>?apiKey=JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26</code> being passed still as a url variable. |
| 99 | +account for this (note this will only accept the 6-digit long codes typically seen on authentication apps) note the |
| 100 | +<code>?apiKey=JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26</code> is still being passed as a url variable. |
101 | 101 | <code class="block"> |
102 | 102 | tfa = [your TFA code] |
103 | 103 | session.post(('https://api.vrchat.cloud/api/1/auth/twofactorauth/totp/verify?apiKey=JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26'), {'code' : tfa}, headers = requestHeaders) |
|
106 | 106 |
|
107 | 107 |
|
108 | 108 | Now we can get into the real bit. See, the .vrca file was not given when we initially checked the endpoint for the avatar information. I neglected |
109 | | -an important detail: that being that the file will be given so long as you are currently in that avatar. As such, we can make a <b>PUT</b> request |
| 109 | +an important detail: the file will be given so long as you are currently in that avatar. As such, we can make a <b>PUT</b> request |
110 | 110 | to VRChat to select that avatar for us. After doing so, we will switch into that avatar and can then utilize the same endpoint from earlier to get |
111 | 111 | the information of the avatar. |
112 | 112 | <code class="block"> |
|
150 | 150 | </code> |
151 | 151 |
|
152 | 152 |
|
153 | | -And that is it! That simple. No need to login in the game, just do this! Please I ask for you to be response with this and I will make a note that you can |
154 | | -get banned from the game for doing this. Maybe soon now VRChat will fix this little thing (or not because it may be necessary). Who knows? The full code for |
| 153 | +And that is it! That simple. No need to login to the game, just do this! Please I ask for you to be responsible with this and I will make a note that you can |
| 154 | +get banned from the game for doing this. Maybe VRChat will soon fix this little thing (or not because it may be necessary). Who knows? The full code for |
155 | 155 | this can be seen below: |
156 | 156 | <code class="block"> |
157 | 157 | #Importing |
|
0 commit comments