An open API service indexing awesome lists of open source software.

https://github.com/talha-t/wallpaperapi

League Of Legends Wallpaper API for C#
https://github.com/talha-t/wallpaperapi

csharp-library league-api leagueoflegends wallpaper

Last synced: 11 days ago
JSON representation

League Of Legends Wallpaper API for C#

Awesome Lists containing this project

README

          

Wallpapers API
for C#
======

Wallpapers, categories, comments and more!

Powered by [LoL Wallpapers API](http://docs.lolwallpapers.apiary.io)

## Usage

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

Add using tag after referencing:
```csharp
using TalhaT.WallpapersApi;
```

Then, make sure you have set your key:
```csharp
WallpaperApi.SetKey("z4oXaJzHiETLf0...");
```

Get first page of wallpapers (20 wallpapers by default) :
```csharp
var wallpaper = await WallpaperApi.GetWallpapersAsync(); //asynchronously

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

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

Darius wallpapers:
```csharp
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}");
```