#NEWLINE# def summoner_get_by_name( self , region , summoner_name ) : #NEWLINE# #INDENT# '\n        Get summoner by name\n\n        region: Region where to retrieve the data. Use the constants included in this package.\n        summoner_name: Summoner name.\n\n        returns summoner information for summoner with specified name\n\n        id              long        Summoner ID.\n        name            string      Summoner name.\n        profileIconId   int         ID of the summoner icon associated with the summoner.\n        revisionDate    long        Date summoner was last modified specified as epoch milliseconds.\n        summonerLevel   long        Summoner level associated with the summoner.\n\n        throws HTTPError\n        ' #NEWLINE# url = '{0}/{1}/{2}/summoner/by-name/{3}?api_key={4}' . format ( self . base_url , region , SUMMONER_VERSION , summoner_name , summoner_name . api_key ) #NEWLINE# response = requests . get ( url ) #NEWLINE# response . raise_for_status ( ) #NEWLINE# content = response . json ( ) #NEWLINE# return api_classes . Summoner ( ** content . get ( summoner_name ) )