2018-05-22 16:45:33 -04:00
|
|
|
|
using SteamStorefrontAPI;
|
|
|
|
|
using SteamStorefrontAPI.Classes;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace SteamStorefrontConsole
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
2018-05-24 16:16:39 -04:00
|
|
|
|
Task.Run(async () => await Examples()).Wait();
|
2018-05-22 16:45:33 -04:00
|
|
|
|
}
|
|
|
|
|
|
2018-05-24 16:16:39 -04:00
|
|
|
|
static async Task Examples()
|
2018-05-22 16:45:33 -04:00
|
|
|
|
{
|
2018-05-26 12:05:12 -04:00
|
|
|
|
// Get details for SteamApp with ID 443790
|
|
|
|
|
SteamApp steamApp1 = await AppDetails.GetAsync(460810);
|
|
|
|
|
|
|
|
|
|
// Get details for SteamApp with ID 443790 for region US
|
|
|
|
|
SteamApp steamApp2 = await AppDetails.GetAsync(322330, "US");
|
|
|
|
|
|
2018-05-27 16:42:59 -04:00
|
|
|
|
// Get details for SteamApp with ID 443790 for region US with strings localized in german
|
|
|
|
|
SteamApp steamApp3 = await AppDetails.GetAsync(322330, "US", "german");
|
|
|
|
|
|
2018-05-26 12:05:12 -04:00
|
|
|
|
// Get details for Package with ID 68179 for region
|
|
|
|
|
PackageInfo package1 = await PackageDetails.GetAsync(68179);
|
|
|
|
|
|
|
|
|
|
// Get details for Package with ID 68179 for region JP
|
|
|
|
|
PackageInfo package2 = await PackageDetails.GetAsync(68179, "JP");
|
|
|
|
|
|
|
|
|
|
// Get a list of featured games
|
|
|
|
|
FeaturedApps featured = await Featured.GetAsync();
|
|
|
|
|
|
|
|
|
|
// Get a list of featured games for region DE
|
|
|
|
|
FeaturedApps featured2 = await Featured.GetAsync("DE");
|
|
|
|
|
|
2018-05-27 16:42:59 -04:00
|
|
|
|
// Get a list of featured games for region DE localized in english
|
|
|
|
|
FeaturedApps featured3 = await Featured.GetAsync("DE", "english");
|
|
|
|
|
|
2018-05-26 12:05:12 -04:00
|
|
|
|
// Get a list of featured games grouped by category
|
2018-05-29 17:12:11 -04:00
|
|
|
|
List<FeaturedCategory> featuredCategories = (await FeaturedCategories.GetAsync()).ToList();
|
2018-05-26 12:05:12 -04:00
|
|
|
|
|
|
|
|
|
// Get a list of featured games grouped by category for region US
|
2018-05-29 17:12:11 -04:00
|
|
|
|
List<FeaturedCategory> featuredCategories2 = (await FeaturedCategories.GetAsync("DE")).ToList();
|
2018-05-22 16:45:33 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|