Skip to content

Commit 1e60e4a

Browse files
committed
Upgrade Python SDK to spec 1.16.7
1 parent 6377dc7 commit 1e60e4a

File tree

150 files changed

+219
-169
lines changed

Some content is hidden

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

150 files changed

+219
-169
lines changed

docs/GroupsApi.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ Name | Type | Description | Notes
15921592
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
15931593

15941594
# **get_group_invites**
1595-
> list[GroupMember] get_group_invites(group_id)
1595+
> list[GroupMember] get_group_invites(group_id, n=n, offset=offset)
15961596
15971597
Get Group Invites Sent
15981598

@@ -1629,10 +1629,12 @@ with vrchatapi.ApiClient(configuration) as api_client:
16291629
# Create an instance of the API class
16301630
api_instance = vrchatapi.GroupsApi(api_client)
16311631
group_id = 'grp_00000000-0000-0000-0000-000000000000' # str | Must be a valid group ID.
1632+
n = 60 # int | The number of objects to return. (optional) (default to 60)
1633+
offset = 56 # int | A zero-based offset from the default object sorting from where search results start. (optional)
16321634

16331635
try:
16341636
# Get Group Invites Sent
1635-
api_response = api_instance.get_group_invites(group_id)
1637+
api_response = api_instance.get_group_invites(group_id, n=n, offset=offset)
16361638
pprint(api_response)
16371639
except ApiException as e:
16381640
print("Exception when calling GroupsApi->get_group_invites: %s\n" % e)
@@ -1643,6 +1645,8 @@ with vrchatapi.ApiClient(configuration) as api_client:
16431645
Name | Type | Description | Notes
16441646
------------- | ------------- | ------------- | -------------
16451647
**group_id** | **str**| Must be a valid group ID. |
1648+
**n** | **int**| The number of objects to return. | [optional] [default to 60]
1649+
**offset** | **int**| A zero-based offset from the default object sorting from where search results start. | [optional]
16461650

16471651
### Return type
16481652

@@ -1903,7 +1907,7 @@ Name | Type | Description | Notes
19031907
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
19041908

19051909
# **get_group_requests**
1906-
> list[GroupMember] get_group_requests(group_id)
1910+
> list[GroupMember] get_group_requests(group_id, n=n, offset=offset)
19071911
19081912
Get Group Join Requests
19091913

@@ -1940,10 +1944,12 @@ with vrchatapi.ApiClient(configuration) as api_client:
19401944
# Create an instance of the API class
19411945
api_instance = vrchatapi.GroupsApi(api_client)
19421946
group_id = 'grp_00000000-0000-0000-0000-000000000000' # str | Must be a valid group ID.
1947+
n = 60 # int | The number of objects to return. (optional) (default to 60)
1948+
offset = 56 # int | A zero-based offset from the default object sorting from where search results start. (optional)
19431949

19441950
try:
19451951
# Get Group Join Requests
1946-
api_response = api_instance.get_group_requests(group_id)
1952+
api_response = api_instance.get_group_requests(group_id, n=n, offset=offset)
19471953
pprint(api_response)
19481954
except ApiException as e:
19491955
print("Exception when calling GroupsApi->get_group_requests: %s\n" % e)
@@ -1954,6 +1960,8 @@ with vrchatapi.ApiClient(configuration) as api_client:
19541960
Name | Type | Description | Notes
19551961
------------- | ------------- | ------------- | -------------
19561962
**group_id** | **str**| Must be a valid group ID. |
1963+
**n** | **int**| The number of objects to return. | [optional] [default to 60]
1964+
**offset** | **int**| A zero-based offset from the default object sorting from where search results start. | [optional]
19571965

19581966
### Return type
19591967

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"@openapitools/openapi-generator-cli": "^2.9.0"
3+
"@openapitools/openapi-generator-cli": "^2.13.1"
44
}
55
}

setup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
5050
# Enter a context with an instance of the API client
5151
with vrchatapi.ApiClient(configuration) as api_client:
52+
# Set our User-Agent as per VRChat Usage Policy
53+
api_client.user_agent = "MyProject/1.0 my@email.com"
5254
5355
# Instantiate instances of API classes
5456
auth_api = authentication_api.AuthenticationApi(api_client)
@@ -73,15 +75,15 @@
7375
print("Logged in as:", current_user.display_name)
7476
```
7577
76-
See [example.py](https://github.com/vrchatapi/vrchatapi-python/blob/main/example.py) for more example usage on getting started.
78+
See [Examples](https://github.com/vrchatapi/vrchatapi-python/blob/main/examples/README.md) for more example usage on getting started.
7779
7880
## Contributing
7981
8082
Contributions are welcome, but do not add features that should be handled by the OpenAPI specification.
8183
8284
Join the [Discord server](https://discord.gg/Ge2APMhPfD) to get in touch with us.
8385
84-
The version of the OpenAPI document: 1.16.6
86+
The version of the OpenAPI document: 1.16.7
8587
Contact: vrchatapi.lpv0t@aries.fyi
8688
Generated by: https://openapi-generator.tech
8789
"""
@@ -90,7 +92,7 @@
9092
from setuptools import setup, find_packages # noqa: H301
9193

9294
NAME = "vrchatapi"
93-
VERSION = "1.16.6"
95+
VERSION = "1.16.7"
9496
# To install the library, run the following
9597
#
9698
# python setup.py install
@@ -160,6 +162,8 @@
160162
161163
# Enter a context with an instance of the API client
162164
with vrchatapi.ApiClient(configuration) as api_client:
165+
# Set our User-Agent as per VRChat Usage Policy
166+
api_client.user_agent = "MyProject/1.0 my@email.com"
163167
164168
# Instantiate instances of API classes
165169
auth_api = authentication_api.AuthenticationApi(api_client)
@@ -184,7 +188,7 @@
184188
print("Logged in as:", current_user.display_name)
185189
```
186190
187-
See [example.py](https://github.com/vrchatapi/vrchatapi-python/blob/main/example.py) for more example usage on getting started.
191+
See [Examples](https://github.com/vrchatapi/vrchatapi-python/blob/main/examples/README.md) for more example usage on getting started.
188192
189193
## Contributing
190194

vrchatapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
VRChat API Documentation
77
88
9-
The version of the OpenAPI document: 1.16.6
9+
The version of the OpenAPI document: 1.16.7
1010
Contact: vrchatapi.lpv0t@aries.fyi
1111
Generated by: https://openapi-generator.tech
1212
"""

vrchatapi/api/authentication_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VRChat API Documentation
55
66
7-
The version of the OpenAPI document: 1.16.6
7+
The version of the OpenAPI document: 1.16.7
88
Contact: vrchatapi.lpv0t@aries.fyi
99
Generated by: https://openapi-generator.tech
1010
"""

vrchatapi/api/avatars_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VRChat API Documentation
55
66
7-
The version of the OpenAPI document: 1.16.6
7+
The version of the OpenAPI document: 1.16.7
88
Contact: vrchatapi.lpv0t@aries.fyi
99
Generated by: https://openapi-generator.tech
1010
"""

vrchatapi/api/economy_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VRChat API Documentation
55
66
7-
The version of the OpenAPI document: 1.16.6
7+
The version of the OpenAPI document: 1.16.7
88
Contact: vrchatapi.lpv0t@aries.fyi
99
Generated by: https://openapi-generator.tech
1010
"""

vrchatapi/api/favorites_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VRChat API Documentation
55
66
7-
The version of the OpenAPI document: 1.16.6
7+
The version of the OpenAPI document: 1.16.7
88
Contact: vrchatapi.lpv0t@aries.fyi
99
Generated by: https://openapi-generator.tech
1010
"""

vrchatapi/api/files_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VRChat API Documentation
55
66
7-
The version of the OpenAPI document: 1.16.6
7+
The version of the OpenAPI document: 1.16.7
88
Contact: vrchatapi.lpv0t@aries.fyi
99
Generated by: https://openapi-generator.tech
1010
"""

0 commit comments

Comments
 (0)