public ILoLResponse GetSummonerByName(string summonerName) { var queryUrl = SummonerApiAdapter.GetSummonerByNameRequestUrl(summonerName, Region); queryUrl = AppendApiKey(queryUrl); return(WebUtilFunctions.GetEndpointResponseFromUrl <SummonerResponse, ErrorResponse>(Handler, queryUrl)); }
public async Task <ILoLResponse> GetSummonerBySummonerIdAsync(long summonerId) { var queryUrl = SummonerApiAdapter.GetSummonerBySummonerIdRequestUrl(summonerId, Region); queryUrl = AppendApiKey(queryUrl); return(await WebUtilFunctions.GetEndpointResponseFromUrlAsync <SummonerResponse, ErrorResponse>(Handler, queryUrl)); }
public ILoLResponse GetSummonerByAccountId(long accountId) { var queryUrl = SummonerApiAdapter.GetSummonerByAccountIdRequestUrl(accountId, Region); queryUrl = AppendApiKey(queryUrl); return(WebUtilFunctions.GetEndpointResponseFromUrl <SummonerResponse, ErrorResponse>(Handler, queryUrl)); }