kRapaille / LeagueOfLegendsAPI

Portable C# Library for League of legends API
http://xeex.github.io/LeagueOfLegendsAPI
MIT License
19 stars 7 forks source link

Example doesn't work #45

Closed MarcoCadei closed 10 years ago

MarcoCadei commented 10 years ago

Hi, i just found out this library on League forums and it seems pretty cool, but i have a problem with the example

var leagueAPI = new LeagueApi("YOUR API KEY HERE", RegionEnum.Euw, true);

var summoner = await leagueAPI.Summoner.GetSummonerByNameAsync("TuC Ølen");
var recentGames = await summoner.GetRecentGamesAsync();

var item = await leagueAPI.Static.GetItemsAsync(
  1001, 
  ItemDataEnum.All, 
  languageCode: LanguageEnum.French);

var imageUrl = await item.Image.GetUrlAsync();

In fact summoner.GetRecentGamesAsync() doesn't work. it says that there's no a definition of such method. What am i doing wrong ? Is there a documentation for this library ? Regards, Marco