AuthenticationApi ( api_client ) try : # Step 3. ApiClient ( configuration ) as api_client : # Instantiate instances of API classes auth_api = authentication_api. # Enter a context with an instance of the API client with vrchatapi. VRChat consists of several API's (WorldsApi, UsersApi, FilesApi, NotificationsApi, FriendsApi, etc.) # Here we enter a context of the API Client and instantiate the Authentication API which is required for logging in. Configuration ( username = 'username', password = 'password', ) # Step 2. import vrchatapi from vrchatapi.api import authentication_api from vrchatapi.exceptions import UnauthorizedException from _factor_auth_code import TwoFactorAuthCode configuration = vrchatapi. We begin with creating a Configuration, which contains the username and password for authentication.
0 Comments
Leave a Reply. |