Using Static-Api

static-api examples

Champions

var rit = new ApiCall()
                .SelectApi<ChampionListDto>(LolApiName.StaticData)
                .For(LolApiMethodName.Champions)
                .AddParameter()
                .Build(ServicePlatform.TR1)
                .UseCache(false, false)//<== optional
                .Get();
Api.StaticApi.StaticDatav3.GetChampions(ServicePlatform.TR1);
var rit = new ApiCall()
                .SelectApi<ChampionDto>(LolApiName.StaticData)
                .For(LolApiMethodName.Champions)
                .AddParameter(new ApiParameter(LolApiPath.OnlyId, (long)45))//veigar
                .Build(ServicePlatform.TR1)
                .UseCache(false, false)//<== optional
                .Get();
Api.StaticApi.StaticDatav3.GetChampionsOnlyId(ServicePlatform.TR1,45);

Items

//tags can be used multiple
var rit = new ApiCall()
                .SelectApi<ItemListDto>(LolApiName.StaticData)
                .For(LolApiMethodName.Champions)
                .AddParameter()
                .Build(ServicePlatform.TR1)
                .UseCache(false)
                .Get(new QueryParameter("tags", ItemTag.image),new QueryParameter("tags", ItemTag.stats));
LolApi.StaticApi.StaticDatav3.GetItems(ServicePlatform.TR1, true, null, null, new List<ItemTag>() { 
  ItemTag.image, ItemTag.stats 
});
//tags can be used multiple
var rit = new ApiCall()
                .SelectApi<ItemDto>(LolApiName.StaticData)
                .For(LolApiMethodName.Items)
                .AddParameter(new ApiParameter(LolApiPath.OnlyId, (long)1410))
                .Build(ServicePlatform.TR1)
                .UseCache(false)
                .Get(new QueryParameter("tags", ItemTag.image),new QueryParameter("tags", ItemTag.stats));
LolApi.StaticApi.StaticDatav3.GetItemsOnlyId(ServicePlatform.TR1,1410);

📘

HELP