AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Vrchat sdk 311/21/2023 ![]() ApiException as e : print ( "Exception when calling API: %s \n ", e ) print ( "Logged in as:", current_user. get_current_user () else : print ( "Exception when calling API: %s \n ", e ) except vrchatapi. ![]() verify2_fa ( two_factor_auth_code = TwoFactorAuthCode ( input ( "2FA Code: " ))) current_user = auth_api. Calling verify2fa if the account has 2FA enabled auth_api. drag and drop bubbles with commands with lines attaching, this does this, and this makes this happen, unless this happens. get_current_user () except UnauthorizedException as e : if UnauthorizedException. Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in. 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
Read More
Leave a Reply. |