-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGamesDetails.cs
31 lines (27 loc) · 920 Bytes
/
GamesDetails.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Text;
using FaceitAPI.Models;
using FaceitAPI.Types;
namespace FaceitAPI.Samples.Samples
{
public class GamesDetails
{
public void Get()
{
// arrange
Authorization authorization = new Authorization("<< YOUR API KEY >>");
Faceit faceit = new Faceit(authorization);
Games games = faceit.GetObject<Games>();
Paging<GameDetails> details = games.GetGames();
foreach (GameDetails game in details.Items)
{
// game title eg. "Counter Strike: Global Offensive", "CS:GO"
string visiblename = game.LongLabel;
string visibleshortname = game.ShortLabel;
// assets contains images.
string landingimage = game.Assets.LandingPage;
}
}
}
}