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#
- Host: GitHub
- URL: https://github.com/talha-t/wallpaperapi
- Owner: Talha-T
- License: mit
- Created: 2017-07-20T20:22:04.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T17:55:40.000Z (almost 8 years ago)
- Last Synced: 2025-01-23T05:14:01.610Z (9 months ago)
- Topics: csharp-library, league-api, leagueoflegends, wallpaper
- Language: C#
- Homepage:
- Size: 3.79 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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(); //asynchronouslyvar 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}");
```