|
33 | 33 | # Step 1. We begin with creating a Configuration, which contains the username and password for authentication. |
34 | 34 | import vrchatapi |
35 | 35 | from vrchatapi.api import authentication_api, users_api |
36 | | -from pprint import pprint |
37 | 36 |
|
38 | 37 | configuration = vrchatapi.Configuration( |
39 | 38 | username = 'username', |
|
52 | 51 | try: |
53 | 52 | # Step 3. Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in. |
54 | 53 | current_user = auth_api.get_current_user() |
55 | | - pprint("Logged in as:", current_user.display_name) |
| 54 | + print("Logged in as:", current_user.display_name) |
56 | 55 | except vrchatapi.ApiException as e: |
57 | | - print("Exception when calling API: %s\n" % e) |
| 56 | + print("Exception when calling API: %s\n", e) |
58 | 57 | ``` |
59 | 58 |
|
60 | 59 | See [example.py](https://github.com/vrchatapi/vrchatapi-python/blob/main/example.py) for more example usage on getting started. |
|
74 | 73 | from setuptools import setup, find_packages # noqa: H301 |
75 | 74 |
|
76 | 75 | NAME = "vrchatapi" |
77 | | -VERSION = "1.0.0" |
| 76 | +VERSION = "1.1.2" |
78 | 77 | # To install the library, run the following |
79 | 78 | # |
80 | 79 | # python setup.py install |
|
90 | 89 | setup( |
91 | 90 | name=NAME, |
92 | 91 | version=VERSION, |
93 | | - description="VRChat API Documentation", |
| 92 | + description="VRChat API Library for Python", |
94 | 93 | author="Unofficial VRChat API Documentation Project", |
95 | 94 | author_email="me@ruby.js.org", |
96 | 95 | url="", |
97 | | - keywords=["OpenAPI", "OpenAPI-Generator", "VRChat API Documentation"], |
| 96 | + keywords=["vrchat", "vrchatapi", "vrc"], |
98 | 97 | python_requires=">=3.6", |
99 | 98 | install_requires=REQUIRES, |
100 | 99 | packages=find_packages(exclude=["test", "tests"]), |
|
134 | 133 | # Step 1. We begin with creating a Configuration, which contains the username and password for authentication. |
135 | 134 | import vrchatapi |
136 | 135 | from vrchatapi.api import authentication_api, users_api |
137 | | -from pprint import pprint |
138 | 136 |
|
139 | 137 | configuration = vrchatapi.Configuration( |
140 | 138 | username = 'username', |
|
153 | 151 | try: |
154 | 152 | # Step 3. Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in. |
155 | 153 | current_user = auth_api.get_current_user() |
156 | | - pprint("Logged in as:", current_user.display_name) |
| 154 | + print("Logged in as:", current_user.display_name) |
157 | 155 | except vrchatapi.ApiException as e: |
158 | | - print("Exception when calling API: %s\n" % e) |
| 156 | + print("Exception when calling API: %s\n", e) |
159 | 157 | ``` |
160 | 158 |
|
161 | 159 | See [example.py](https://github.com/vrchatapi/vrchatapi-python/blob/main/example.py) for more example usage on getting started. |
|
0 commit comments