Override this method to prepare context for get_unlocked_achievements. List coroutine prepare_achievements_context ( self, game_ids ) retrieve_owned_games () 6 return games Return type authenticated (): 3 raise AuthenticationRequired () 4 5 games = self. Or NextStep if it requires going to another cef url.Ĭredentials ( Dict) – end_uri previous NextStep finished on.Ĭookies ( List]) – cookies extracted from the end_uri site.ġ async def get_owned_games ( self ): 2 if not self. This method’s parameters provide the data extracted from the web page navigation that previous NextStep finished on. This method is called if we return NextStep from authenticate() Union coroutine pass_login_credentials ( self, step, credentials, cookies ) _authenticate ( stored_credentials ) 7 except AccessDenied : 8 raise InvalidCredentials () 9 return Authentication ( user_data, user_data ) Return type In the previous session they will be passed here as a parameter.ġ async def authenticate ( self, stored_credentials = None ): 2 if not stored_credentials : 3 return NextStep ( "web_session", PARAMS, cookies = COOKIES ) 4 else : 5 try : 6 user_data = self. Stored_credentials ( Optional) – If the client received any credentials to store locally This method is called by the GOG Galaxy Client. Or NextStep if it requires going to another url. This method should either return Authentication if the authentication is finished Override this method to handle user authentication. None coroutine authenticate ( self, stored_credentials = None ) This method is called on integration shutdown. check_for_removed_games ()) 6 if not self. Override it to implement periodical non-blocking tasks.Įxample of possible override of the method:ġ def tick ( self ): 2 if not self. Override it if you need to do additional plugin initializations. Persistent cache is available when this method is called. This method is called right after the handshake with the GOG Galaxy Client is complete andīefore any other operations are called by the GOG Galaxy Client. None coroutine refresh_credentials ( self, params, sensitive_params ) Return type Push local copy of the persistent cache to the GOG Galaxy Client replacing existing one. Notify the client that integration has lost authentication for theĬurrent user and is unable to perform actions which would require it. User_presence ( UserPresence) – presence information of the specified user User_id ( str) – the id of the user whose presence information is updated Notify the client about the updated user presence information. None update_user_presence ( user_id, user_presence ) Game_time ( GameTime) – game time to update Return type Notify the client to update game time for a game. User ( UserInfo) – UserInfo of a friend whose info was updated Return type Notify the client about the updated friend information. User_id ( str) – id of the user to remove from friends list Return type Notify the client to remove a user from friends list of the currently authenticated user. User ( UserInfo) – UserInfo of a user that the client will add to friends list Return type Notify the client to add a user to friends list of the currently authenticated user. sleep ( 5 ) # interval 8 9 def tick ( self ): 10 if self. update_local_game_status ( LocalGame ( game. 1 async def _check_statuses ( self ): 2 for game in await self.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |