Skip to content

Commit 5e9f5ca

Browse files
committed
Update Python SDK to spec 1.0.2
1 parent 8a548b0 commit 5e9f5ca

167 files changed

Lines changed: 260 additions & 181 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.

‎.openapi-generator/FILES‎

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,85 @@ setup.cfg
8585
setup.py
8686
test-requirements.txt
8787
test/__init__.py
88+
test/test_authentication_api.py
89+
test/test_avatar.py
90+
test/test_avatar_id.py
91+
test/test_avatar_unity_package_url_object.py
92+
test/test_avatars_api.py
93+
test/test_config.py
94+
test/test_config_announcements.py
95+
test/test_config_download_urls.py
96+
test/test_config_dynamic_world_rows.py
97+
test/test_config_events.py
98+
test/test_current_user.py
99+
test/test_deployment_group.py
100+
test/test_developer_type.py
101+
test/test_error.py
102+
test/test_favorite.py
103+
test/test_favorite_group.py
104+
test/test_favorite_group_id.py
105+
test/test_favorite_group_visibility.py
106+
test/test_favorite_id.py
107+
test/test_favorite_type.py
108+
test/test_favorites_api.py
109+
test/test_file.py
110+
test/test_file_data.py
111+
test/test_file_id.py
112+
test/test_file_status.py
113+
test/test_file_version.py
114+
test/test_files_api.py
115+
test/test_friends_api.py
116+
test/test_inline_object.py
117+
test/test_inline_object1.py
118+
test/test_inline_object10.py
119+
test/test_inline_object11.py
120+
test/test_inline_object12.py
121+
test/test_inline_object13.py
122+
test/test_inline_object2.py
123+
test/test_inline_object3.py
124+
test/test_inline_object4.py
125+
test/test_inline_object5.py
126+
test/test_inline_object6.py
127+
test/test_inline_object7.py
128+
test/test_inline_object8.py
129+
test/test_inline_object9.py
130+
test/test_inline_response200.py
131+
test/test_inline_response2001.py
132+
test/test_inline_response2002.py
133+
test/test_inline_response2003.py
134+
test/test_inline_response2004.py
135+
test/test_inline_response2005.py
136+
test/test_inline_response2006.py
137+
test/test_inline_response2007.py
138+
test/test_inline_response401.py
139+
test/test_instance.py
140+
test/test_instance_platforms.py
141+
test/test_limited_unity_package.py
142+
test/test_limited_user.py
143+
test/test_limited_world.py
144+
test/test_mime_type.py
145+
test/test_notification.py
146+
test/test_notification_type.py
147+
test/test_notifications_api.py
148+
test/test_platform.py
149+
test/test_player_moderation.py
150+
test/test_player_moderation_id.py
151+
test/test_player_moderation_type.py
152+
test/test_playermoderation_api.py
153+
test/test_release_status.py
154+
test/test_response.py
155+
test/test_success.py
156+
test/test_system_api.py
157+
test/test_tag.py
158+
test/test_unity_package.py
159+
test/test_unity_package_id.py
160+
test/test_user.py
161+
test/test_user_state.py
162+
test/test_user_status.py
163+
test/test_users_api.py
164+
test/test_world.py
165+
test/test_world_id.py
166+
test/test_worlds_api.py
88167
tox.ini
89168
vrchatapi/__init__.py
90169
vrchatapi/api/__init__.py

‎docs/AuthenticationApi.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**delete_user_by_id**](AuthenticationApi.md#delete_user_by_id) | **PUT** /user/{userId}/delete | Delete User
7+
[**delete_user**](AuthenticationApi.md#delete_user) | **PUT** /user/{userId}/delete | Delete User
88
[**get_current_user**](AuthenticationApi.md#get_current_user) | **GET** /auth/user | Login and/or Get Current User Info
99
[**logout**](AuthenticationApi.md#logout) | **PUT** /logout | Logout
1010
[**verify2_fa**](AuthenticationApi.md#verify2_fa) | **POST** /auth/twofactorauth/totp/verify | Verify 2FA code
1111
[**verify_auth_token**](AuthenticationApi.md#verify_auth_token) | **GET** /auth | Verify Auth Token
1212
[**verify_recovery_code**](AuthenticationApi.md#verify_recovery_code) | **POST** /auth/twofactorauth/otp/verify | Verify 2FA code with Recovery code
1313

1414

15-
# **delete_user_by_id**
16-
> CurrentUser delete_user_by_id(user_id)
15+
# **delete_user**
16+
> CurrentUser delete_user(user_id)
1717
1818
Delete User
1919

@@ -62,10 +62,10 @@ with vrchatapi.ApiClient(configuration) as api_client:
6262
# example passing only required values which don't have defaults set
6363
try:
6464
# Delete User
65-
api_response = api_instance.delete_user_by_id(user_id)
65+
api_response = api_instance.delete_user(user_id)
6666
pprint(api_response)
6767
except vrchatapi.ApiException as e:
68-
print("Exception when calling AuthenticationApi->delete_user_by_id: %s\n" % e)
68+
print("Exception when calling AuthenticationApi->delete_user: %s\n" % e)
6969
```
7070

7171

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
![VRChat API Banner](https://vrchatapi.github.io/assets/img/api_banner_1500x400.png) # Welcome to the VRChat API Before we begin, we would like to state this is a **COMMUNITY DRIVEN PROJECT**. This means that everything you read on here was written by the community itself and is **not** officially supported by VRChat. The documentation is provided \"AS IS\", and any action you take towards VRChat is completely your own responsibility. The documentation and additional libraries SHALL ONLY be used for applications interacting with VRChat's API in accordance with their [Terms of Service](https://github.com/VRChatAPI), and MUST NOT be used for modifying the client, \"avatar ripping\", or other illegal activities. Malicious usage or spamming the API may result in account termination. Certain parts of the API are also more sensitive than others, for example moderation, so please read tread extra carefully and read the warnings when present. ![Tupper Policy on API](https://i.imgur.com/yLlW7Ok.png) Finally, use of the API using applications other than the approved methods (website, VRChat application, Unity SDK) is not officially supported. VRChat provides no guarantee or support for external applications using the API. Access to API endpoints may break **at any time, without notice**. Therefore, please **do not ping** VRChat Staff in the VRChat Discord if you are having API problems, as they do not provide API support. We will make a best effort in keeping this documentation and associated language libraries up to date, but things might be outdated or missing. If you find that something is no longer valid, please contact us on Discord or [create an issue](https://github.com/vrchatapi/specification/issues) and tell us so we can fix it. # Getting Started The VRChat API can be used to programmatically retrieve or update information regarding your profile, friends, avatars, worlds and more. The API consists of two parts, \"Photon\" which is only used in-game, and the \"Web API\" which is used by both the game and the website. This documentation focuses only on the Web API. The API is designed around the REST ideology, providing semi-simple and usually predictable URIs to access and modify objects. Requests support standard HTTP methods like GET, PUT, POST, and DELETE and standard status codes. Response bodies are always UTF-8 encoded JSON objects, unless explicitly documented otherwise. <div class=\"callout callout-error\"> <strong>🛑 Warning! Do not touch Photon!</strong><br> Photon is only used by the in-game client and should <b>not</b> be touched. Doing so may result in permanent account termination. </div> <div class=\"callout callout-info\"> <strong>ℹ️ API Key and Authentication</strong><br> The API Key has always been the same and is currently <code>JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26</code>. Read <a href=\"#tag--authentication\">Authentication</a> for how to log in. </div> # Using the API For simply exploring what the API can do it is strongly recommended to download [Insomnia](https://insomnia.rest/download), a free and open-source API client that's great for sending requests to the API in an orderly fashion. Insomnia allows you to send data in the format that's required for VRChat's API. It is also possible to try out the API in your browser, by first logging in at [vrchat.com/home](https://vrchat.com/home/) and then going to [vrchat.com/api/1/auth/user](https://vrchat.com/api/1/auth/user), but the information will be much harder to work with. For more permanent operation such as software development it is instead recommended to use one of the existing language SDKs. This community project maintains API libraries in several languages, which allows you to interact with the API with simple function calls rather than having to implement the HTTP protocol yourself. Most of these libraries are automatically generated from the API specification, sometimes with additional helpful wrapper code to make usage easier. This allows them to be almost automatically updated and expanded upon as soon as a new feature is introduced in the specification itself. The libraries can be found on [GitHub](https://github.com/vrchatapi) or following: * [NodeJS (JavaScript)](https://www.npmjs.com/package/vrchat) * [Dart](https://pub.dev/packages/vrchat_dart) * [Rust](https://crates.io/crates/vrchatapi) * [C#](github.com/vrchatapi/vrchatapi-csharp) * [Python](https://github.com/vrchatapi/VRChatPython) # Pagination Most endpoints enforce pagination, meaning they will only return 10 entries by default, and never more than 100.<br> Using both the limit and offset parameters allows you to easily paginate through a large number of objects. | Query Parameter | Type | Description | | ----------|--|------- | | `limit` | integer | The number of objects to return. This value often defaults to 10. Highest limit is always 100.| | `offset` | integer | A zero-based offset from the default object sorting.| If a request returns fewer objects than the `limit` parameter, there are no more items available to return. # Contribution Do you want to get involved in the documentation effort? Do you want to help improve one of the language API libraries? This project is an [OPEN Open Source Project](https://openopensource.org)! This means that individuals making significant and valuable contributions are given commit-access to the project. It also means we are very open and welcoming of new people making contributions, unlike some more guarded open-source projects. [![Discord](https://img.shields.io/static/v1?label=vrchatapi&message=discord&color=blueviolet&style=for-the-badge)](https://discord.gg/qjZE9C9fkB) # noqa: E501
55
6-
The version of the OpenAPI document: 1.0.1
6+
The version of the OpenAPI document: 1.0.2
77
Contact: me@ruby.js.org
88
Generated by: https://openapi-generator.tech
99
"""

‎test/test_authentication_api.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
![VRChat API Banner](https://vrchatapi.github.io/assets/img/api_banner_1500x400.png) # Welcome to the VRChat API Before we begin, we would like to state this is a **COMMUNITY DRIVEN PROJECT**. This means that everything you read on here was written by the community itself and is **not** officially supported by VRChat. The documentation is provided \"AS IS\", and any action you take towards VRChat is completely your own responsibility. The documentation and additional libraries SHALL ONLY be used for applications interacting with VRChat's API in accordance with their [Terms of Service](https://github.com/VRChatAPI), and MUST NOT be used for modifying the client, \"avatar ripping\", or other illegal activities. Malicious usage or spamming the API may result in account termination. Certain parts of the API are also more sensitive than others, for example moderation, so please read tread extra carefully and read the warnings when present. ![Tupper Policy on API](https://i.imgur.com/yLlW7Ok.png) Finally, use of the API using applications other than the approved methods (website, VRChat application, Unity SDK) is not officially supported. VRChat provides no guarantee or support for external applications using the API. Access to API endpoints may break **at any time, without notice**. Therefore, please **do not ping** VRChat Staff in the VRChat Discord if you are having API problems, as they do not provide API support. We will make a best effort in keeping this documentation and associated language libraries up to date, but things might be outdated or missing. If you find that something is no longer valid, please contact us on Discord or [create an issue](https://github.com/vrchatapi/specification/issues) and tell us so we can fix it. # Getting Started The VRChat API can be used to programmatically retrieve or update information regarding your profile, friends, avatars, worlds and more. The API consists of two parts, \"Photon\" which is only used in-game, and the \"Web API\" which is used by both the game and the website. This documentation focuses only on the Web API. The API is designed around the REST ideology, providing semi-simple and usually predictable URIs to access and modify objects. Requests support standard HTTP methods like GET, PUT, POST, and DELETE and standard status codes. Response bodies are always UTF-8 encoded JSON objects, unless explicitly documented otherwise. <div class=\"callout callout-error\"> <strong>🛑 Warning! Do not touch Photon!</strong><br> Photon is only used by the in-game client and should <b>not</b> be touched. Doing so may result in permanent account termination. </div> <div class=\"callout callout-info\"> <strong>ℹ️ API Key and Authentication</strong><br> The API Key has always been the same and is currently <code>JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26</code>. Read <a href=\"#tag--authentication\">Authentication</a> for how to log in. </div> # Using the API For simply exploring what the API can do it is strongly recommended to download [Insomnia](https://insomnia.rest/download), a free and open-source API client that's great for sending requests to the API in an orderly fashion. Insomnia allows you to send data in the format that's required for VRChat's API. It is also possible to try out the API in your browser, by first logging in at [vrchat.com/home](https://vrchat.com/home/) and then going to [vrchat.com/api/1/auth/user](https://vrchat.com/api/1/auth/user), but the information will be much harder to work with. For more permanent operation such as software development it is instead recommended to use one of the existing language SDKs. This community project maintains API libraries in several languages, which allows you to interact with the API with simple function calls rather than having to implement the HTTP protocol yourself. Most of these libraries are automatically generated from the API specification, sometimes with additional helpful wrapper code to make usage easier. This allows them to be almost automatically updated and expanded upon as soon as a new feature is introduced in the specification itself. The libraries can be found on [GitHub](https://github.com/vrchatapi) or following: * [NodeJS (JavaScript)](https://www.npmjs.com/package/vrchat) * [Dart](https://pub.dev/packages/vrchat_dart) * [Rust](https://crates.io/crates/vrchatapi) * [C#](github.com/vrchatapi/vrchatapi-csharp) * [Python](https://github.com/vrchatapi/VRChatPython) # Pagination Most endpoints enforce pagination, meaning they will only return 10 entries by default, and never more than 100.<br> Using both the limit and offset parameters allows you to easily paginate through a large number of objects. | Query Parameter | Type | Description | | ----------|--|------- | | `limit` | integer | The number of objects to return. This value often defaults to 10. Highest limit is always 100.| | `offset` | integer | A zero-based offset from the default object sorting.| If a request returns fewer objects than the `limit` parameter, there are no more items available to return. # Contribution Do you want to get involved in the documentation effort? Do you want to help improve one of the language API libraries? This project is an [OPEN Open Source Project](https://openopensource.org)! This means that individuals making significant and valuable contributions are given commit-access to the project. It also means we are very open and welcoming of new people making contributions, unlike some more guarded open-source projects. [![Discord](https://img.shields.io/static/v1?label=vrchatapi&message=discord&color=blueviolet&style=for-the-badge)](https://discord.gg/qjZE9C9fkB) # noqa: E501
55
6-
The version of the OpenAPI document: 1.0.1
6+
The version of the OpenAPI document: 1.0.2
77
Contact: me@ruby.js.org
88
Generated by: https://openapi-generator.tech
99
"""
@@ -24,8 +24,8 @@ def setUp(self):
2424
def tearDown(self):
2525
pass
2626

27-
def test_delete_user_by_id(self):
28-
"""Test case for delete_user_by_id
27+
def test_delete_user(self):
28+
"""Test case for delete_user
2929
3030
Delete User # noqa: E501
3131
"""

0 commit comments

Comments
 (0)