def __init__(self, steam_id, api_key): """Sets SteamID and API key, as well as retrieving this user's info""" SteamAPI.__init__(self, steam_id, api_key) self.user_info = self._get_user_info() if self.good_id: self.visibility = self.user_info['profile_visible'] self.games_dict = {}
def __init__(self, game, api_key): """ We don't need a SteamID, only an api key here. Pass in either 'Dota2' or 'TF2' for 'game' """ SteamAPI.__init__(self, "", api_key) self.game = '' if game == "TF2" or game == "tf2": self.game = "440" elif game == "Dota2" or game == "dota2": self.game = "570" else: raise BadGameException("Please enter either TF2 or Dota12") self.items = self._get_items()
def __init__(self, steam_id, api_key): """Sets SteamID and API key, as well as retrieving this user's info""" SteamAPI.__init__(self, steam_id, api_key) self._get_user_info() self.games_dict = None
def __init__(self, api_key): """We don't need a SteamID, only an api key here.""" SteamAPI.__init__(self, "", api_key) self.tf2_items = None self.dota2_items = None