Steamworks Web API wrapper for .NET using Refit.
Very work in progress, use with care 🔥
A thin dotnet wrapper library for the Steamworks Web API that will grow with the author's needs.
Currently only covers parts of the ISteamUser
interface.
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.
dotnet build -c:Release
dotnet tool install --global Nefarius.Tools.XMLDoc2Markdown
xmldoc2md .\bin\netstandard2.0\Nefarius.Steam.PartnerWebApi.dll .\docs\
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, "76561197992990756", "774361");
bool ownsApp = ownership.AppOwnership.OwnsApp;