I get a response from riot's server:
def main():
api = RiotAPI('dec34559a91-ad8b-4fd2-b49a-bae3b4524522b8a')
summoner_name = str(input("Please enter the summoner ID\n"))
if summoner_name == "":
summoner_name = "zLKida"
r = api.get_summoner_by_name(summoner_name)
print(r)
which prints out something like this:
{'zlkidda': {'profileIconId': 539, 'id': 27003987, 'summonerLevel': 30, 'name': 'zLKidda', 'revisionDate': 1444958792000}}
I have no idea how I can access the data inside the dictionary. Note that it is returned as a dict not a string or anything else.
I have tried:
print(r['zlkidda'].['profileIconId'])