Skip to content

Commit 259ac16

Browse files
committed
Updated with requested changes
Added URLs for developer docs. Request now pulls all free games too.
1 parent d0a189f commit 259ac16

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/requests_api_steam.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
import socketpool
1212
import adafruit_requests
1313

14+
# Steam API Docs: https://steamcommunity.com/dev
15+
# Steam API Key: https://steamcommunity.com/dev/apikey
16+
# Steam Usernumber: Visit https://steamcommunity.com, click on your profile icon, your usernumber will be in the browser url.
17+
1418
# Ensure these are setup in settings.toml
1519
# Requires Steam Developer API key
1620
ssid = os.getenv("AP_SSID")
@@ -26,11 +30,12 @@
2630
sleep_time = 900
2731

2832
# Deconstruct URL
29-
# http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=XXXXXXXXXXXXXXXXXXXXX&steamid=XXXXXXXXXXXXXXXX&format=json
33+
# http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=XXXXXXXXXXXXXXXXXXXXX&include_played_free_games=1&steamid=XXXXXXXXXXXXXXXX&format=json
3034
Steam_OwnedGames_URL = (
3135
"http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?"
3236
+ "key="
3337
+ steam_apikey
38+
+ "&include_played_free_games=1"
3439
+ "&steamid="
3540
+ steam_usernumber
3641
+ "&format=json"

0 commit comments

Comments
 (0)