Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nekiplay/steam-client-api

API for Desktop Steam
https://github.com/nekiplay/steam-client-api

Last synced: 24 days ago
JSON representation

API for Desktop Steam

Awesome Lists containing this project

README

        

# Steam-Client-API
API for Desktop Steam

[![Codacy Badge](https://app.codacy.com/project/badge/Grade/dd1774b107464d3e9f4805df8ecdf135)](https://www.codacy.com/gh/Nekiplay/Steam-Client-API/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Nekiplay/Steam-Client-API&utm_campaign=Badge_Grade)

## Using Steam Client API

**Example:**
```C#
SteamClientAPI.SteamClientAPI.Profile profile = new SteamClientAPI.SteamClientAPI.Profile();
Console.WriteLine("Balance: " + profile.Balance + " " + profile.Currency);
```

**Example with exceptions:**
```C#
SteamClientAPI.SteamClientAPI.Profile profile = new SteamClientAPI.SteamClientAPI.Profile();
try
{
Console.WriteLine("Balance: " + profile.Balance + " " + profile.Currency);
}
catch (SteamClientAPI.Exceptions.SteamMemoryRead)
{
Console.WriteLine("Memory read error");
}
catch (SteamClientAPI.Exceptions.SteamNotRunning)
{
Console.WriteLine("Steam is not running");
}
```