Skip to content

Commit

Permalink
Change profile fetch to APIv2
Browse files Browse the repository at this point in the history
  • Loading branch information
AvaS314 committed Jun 12, 2020
1 parent 252f266 commit 0349412
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Note that many games on Itch are not listed in IGDB and therefore will show up a

## Known issues
* Loses connection or can't connect upon restarting GOG (disconnect and reconnect to fix)
* Authentication uses APIv1 which logs your API key in the local log. This will be fixed in the next release.

## Installation
1. Download the plugin from the releases page.
Expand Down
2 changes: 1 addition & 1 deletion src/itch.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def get_owned_games(self):
return games

async def get_user_data(self, api_key):
resp = await self.http_client.get(f"https://itch.io/api/1/{api_key}/me")
resp = await self.http_client.get(f"https://api.itch.io/profile?")
self.authenticated = True
return resp.get("user")

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Itch.io integration",
"platform": "itch",
"guid": "2df02142-4d8a-4a4b-9b6e-c3a0bc62f93b",
"version": "0.0.2",
"version": "0.0.3",
"description": "Itch integration",
"author": "Tauqua, based on David Eichelsdörfer",
"email": "",
Expand Down

0 comments on commit 0349412

Please sign in to comment.