@@ -8,6 +8,7 @@ Method | HTTP request | Description
88[ ** deleteAvatar** ] ( AvatarsApi.md#deleteAvatar ) | ** DELETE** /avatars/{avatarId} | Delete Avatar
99[ ** getAvatar** ] ( AvatarsApi.md#getAvatar ) | ** GET** /avatars/{avatarId} | Get Avatar
1010[ ** getFavoritedAvatars** ] ( AvatarsApi.md#getFavoritedAvatars ) | ** GET** /avatars/favorites | List Favorited Avatars
11+ [ ** getOwnAvatar** ] ( AvatarsApi.md#getOwnAvatar ) | ** GET** /users/{userId}/avatar | Get Own Avatar
1112[ ** searchAvatars** ] ( AvatarsApi.md#searchAvatars ) | ** GET** /avatars | Search Avatars
1213[ ** selectAvatar** ] ( AvatarsApi.md#selectAvatar ) | ** PUT** /avatars/{avatarId}/select | Select Avatar
1314[ ** selectFallbackAvatar** ] ( AvatarsApi.md#selectFallbackAvatar ) | ** PUT** /avatars/{avatarId}/selectFallback | Select Fallback Avatar
@@ -345,6 +346,83 @@ Name | Type | Description | Notes
345346** 401** | Error response due to missing apiKey or auth cookie. | - |
346347** 403** | Error response when trying to see favourited avatars of another user without sufficient admin permissions. | - |
347348
349+ <a name =" getOwnAvatar " ></a >
350+ # ** getOwnAvatar**
351+ > Avatar getOwnAvatar(userId)
352+
353+ Get Own Avatar
354+
355+ Get the current avatar for the user. This will return an error for any other user than the one logged in.
356+
357+ ### Example
358+ ``` java
359+ // Import classes:
360+ import io.github.vrchatapi.ApiClient ;
361+ import io.github.vrchatapi.ApiException ;
362+ import io.github.vrchatapi.Configuration ;
363+ import io.github.vrchatapi.auth.* ;
364+ import io.github.vrchatapi.models.* ;
365+ import io.github.vrchatapi.api.AvatarsApi ;
366+
367+ public class Example {
368+ public static void main (String [] args ) {
369+ ApiClient defaultClient = Configuration . getDefaultApiClient();
370+ defaultClient. setBasePath(" https://api.vrchat.cloud/api/1" );
371+
372+ // Configure API key authorization: apiKeyCookie
373+ ApiKeyAuth apiKeyCookie = (ApiKeyAuth ) defaultClient. getAuthentication(" apiKeyCookie" );
374+ apiKeyCookie. setApiKey(" YOUR API KEY" );
375+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
376+ // apiKeyCookie.setApiKeyPrefix("Token");
377+
378+ // Configure API key authorization: authCookie
379+ ApiKeyAuth authCookie = (ApiKeyAuth ) defaultClient. getAuthentication(" authCookie" );
380+ authCookie. setApiKey(" YOUR API KEY" );
381+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
382+ // authCookie.setApiKeyPrefix("Token");
383+
384+ AvatarsApi apiInstance = new AvatarsApi (defaultClient);
385+ String userId = " userId_example" ; // String |
386+ try {
387+ Avatar result = apiInstance. getOwnAvatar(userId);
388+ System . out. println(result);
389+ } catch (ApiException e) {
390+ System . err. println(" Exception when calling AvatarsApi#getOwnAvatar" );
391+ System . err. println(" Status code: " + e. getCode());
392+ System . err. println(" Reason: " + e. getResponseBody());
393+ System . err. println(" Response headers: " + e. getResponseHeaders());
394+ e. printStackTrace();
395+ }
396+ }
397+ }
398+ ```
399+
400+ ### Parameters
401+
402+ Name | Type | Description | Notes
403+ ------------- | ------------- | ------------- | -------------
404+ ** userId** | ** String** | |
405+
406+ ### Return type
407+
408+ [ ** Avatar** ] ( Avatar.md )
409+
410+ ### Authorization
411+
412+ [ apiKeyCookie] ( ../README.md#apiKeyCookie ) , [ authCookie] ( ../README.md#authCookie )
413+
414+ ### HTTP request headers
415+
416+ - ** Content-Type** : Not defined
417+ - ** Accept** : application/json
418+
419+ ### HTTP response details
420+ | Status code | Description | Response headers |
421+ | -------------| -------------| ------------------|
422+ ** 200** | Returns a single Avatar object. | - |
423+ ** 401** | Error response due to missing apiKey or auth cookie. | - |
424+ ** 403** | Error response when trying to see another users current avatar without sufficient admin permissions. | - |
425+
348426<a name =" searchAvatars " ></a >
349427# ** searchAvatars**
350428> List< ; Avatar> ; searchAvatars(featured, sort, user, userId, n, order, offset, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform)
0 commit comments