Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nekiplay/steam-client-api
- Owner: Nekiplay
- Created: 2021-04-15T11:19:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-04-15T16:16:52.000Z (over 3 years ago)
- Last Synced: 2024-10-14T03:51:09.809Z (2 months ago)
- Language: C#
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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");
}
```