MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / _setup_api

Method _setup_api

pokemongo_bot/__init__.py:1178–1193  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1176 return full_path
1177
1178 def _setup_api(self):
1179 # instantiate pgoapi @var ApiWrapper
1180 self.api = ApiWrapper(config=self.config)
1181
1182 # provide player position on the earth
1183 self._set_starting_position()
1184
1185 self.login()
1186 # chain subrequests (methods) into one RPC call
1187
1188 #self.api.set_signature_lib(self.get_encryption_lib())
1189 #self.api.set_hash_lib(self.get_hash_lib())
1190
1191 self.logger.info('')
1192 # send empty map_cells and then our position
1193 self.update_web_location()
1194
1195 def _print_character_info(self):
1196 # get player profile call

Callers 1

startMethod · 0.95

Calls 4

loginMethod · 0.95
update_web_locationMethod · 0.95
ApiWrapperClass · 0.85

Tested by

no test coverage detected