Skip to content

Commit 59b31e5

Browse files
committed
Upgrade Java SDK to spec 1.9.0
1 parent 72cb5d2 commit 59b31e5

120 files changed

Lines changed: 318 additions & 128 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44

55
group = 'io.github.vrchatapi'
6-
version = '1.8.0'
6+
version = '1.9.0'
77

88
buildscript {
99
repositories {

‎build.sbt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "io.github.vrchatapi",
44
name := "vrchatapi",
5-
version := "1.8.0",
5+
version := "1.9.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

‎docs/AvatarsApi.md‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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&lt;Avatar&gt; searchAvatars(featured, sort, user, userId, n, order, offset, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform)

‎docs/PlayerModerationType.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
* `UNBLOCK` (value: `"unblock"`)
1515

16-
* `HIDEAVATAR` (value: `"hideAvatar"`)
17-
18-
* `SHOWAVATAR` (value: `"showAvatar"`)
19-
2016
* `INTERACTON` (value: `"interactOn"`)
2117

2218
* `INTERACTOFF` (value: `"interactOff"`)

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>vrchatapi</artifactId>
66
<packaging>jar</packaging>
77
<name>vrchatapi</name>
8-
<version>1.8.0</version>
8+
<version>1.9.0</version>
99
<url>https://github.com/openapitools/openapi-generator</url>
1010
<description>OpenAPI Java</description>
1111
<scm>

‎src/main/java/io/github/vrchatapi/ApiCallback.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* VRChat API Documentation
33
*
4-
* The version of the OpenAPI document: 1.8.0
4+
* The version of the OpenAPI document: 1.9.0
55
* Contact: me@ariesclark.com
66
*
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

‎src/main/java/io/github/vrchatapi/ApiClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* VRChat API Documentation
33
*
4-
* The version of the OpenAPI document: 1.8.0
4+
* The version of the OpenAPI document: 1.9.0
55
* Contact: me@ariesclark.com
66
*
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

‎src/main/java/io/github/vrchatapi/ApiException.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* VRChat API Documentation
33
*
4-
* The version of the OpenAPI document: 1.8.0
4+
* The version of the OpenAPI document: 1.9.0
55
* Contact: me@ariesclark.com
66
*
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

‎src/main/java/io/github/vrchatapi/ApiResponse.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* VRChat API Documentation
33
*
4-
* The version of the OpenAPI document: 1.8.0
4+
* The version of the OpenAPI document: 1.9.0
55
* Contact: me@ariesclark.com
66
*
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

‎src/main/java/io/github/vrchatapi/Configuration.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* VRChat API Documentation
33
*
4-
* The version of the OpenAPI document: 1.8.0
4+
* The version of the OpenAPI document: 1.9.0
55
* Contact: me@ariesclark.com
66
*
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)