/WallpaperAPI

League Of Legends Wallpaper API for C#

Primary LanguageC#MIT LicenseMIT

Wallpapers API for C#

Wallpapers, categories, comments and more!

Powered by LoL Wallpapers API

Usage

Download libraries under /libs folder and add reference to your project.

Add using tag after referencing:

using TalhaT.WallpapersApi;

Then, make sure you have set your key:

WallpaperApi.SetKey("z4oXaJzHiETLf0...");

Get first page of wallpapers (20 wallpapers by default) :

var wallpaper = await WallpaperApi.GetWallpapersAsync(); //asynchronously

var wallpaper = WallpaperApi.GetWallpapers(); //synchronously

Query examples:

var wallpaper = await WallpaperApi.GetWallpapersAsync("limit=50", "page=10", "orderby=view_count", "check api documentation");

Darius wallpapers:

var categories = await WallpaperApi.GetCategoriesAsync();
var darius = categories.GetData().First(x => x.Name == "darius");
var id = darius.Id;
var dariusWallpapers = await WallpaperApi.GetWallpapersAsync($"category_ID={id}");