Skip to content

nefarius/Nefarius.Steam.PartnerWebApi

Repository files navigation

Nefarius.Steam.PartnerWebApi

.NET Requirements Nuget Nuget

Steamworks Web API wrapper for .NET using Refit.

About

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.

API Access

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.

Documentation

Link to API docs.

Generating documentation

  • dotnet build -c:Release
  • dotnet tool install --global Nefarius.Tools.XMLDoc2Markdown
  • xmldoc2md .\bin\netstandard2.0\Nefarius.Steam.PartnerWebApi.dll .\docs\

Example

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;

3rd party credits

About

Steamworks Web API wrapper for .NET using Refit.

Resources

License

Stars

Watchers

Forks

Languages