Steamworks Web API wrapper for .NET using Refit.
Important
This project is still evolving, so API-breaking changes might occur each update!
A thin dotnet wrapper library for the Steamworks Web API that will grow with the author's needs.
Covers the ISteamUser and ISteamUserAuth interfaces.
This API requires a special publisher web API key you can only obtain as a partner. This is not the same as the Steam Web API Key anyone with a Steam account can register. Do not expect this library to work with such a key.
using Nefarius.Steam.PartnerWebApi;
using Nefarius.Steam.PartnerWebApi.Models;
using Refit;
string apiKey = "get api key from config file";
ISteamUser steamApi = RestService.For<ISteamUser>("https://partner.steam-api.com");
AppOwnershipResponse ownership = await steamApi.CheckAppOwnership(apiKey, "76561198472918263", "482910");
bool ownsApp = ownership.AppOwnership.OwnsApp;