pg: PG_REDEEM for external stores, post your response in #5

Known responses (missing unused key):
- GOG: `Invalid or no captcha`, `code_used`, `code_not_found`
- microsoft games: `NotFound`
This commit is contained in:
Ralf Vogler 2023-02-23 12:38:26 +01:00
parent 38c5402df0
commit fc3f0a6333
3 changed files with 65 additions and 4 deletions

View file

@ -78,6 +78,7 @@ Available options/variables and their default values:
| PG_EMAIL | | Prime Gaming email for login. Overrides EMAIL. |
| PG_PASSWORD | | Prime Gaming password for login. Overrides PASSWORD. |
| PG_OTPKEY | | Prime Gaming MFA OTP key. |
| PG_REDEEM | 0 | Prime Gaming: try to redeem keys on external stores (experimental). |
| GOG_EMAIL | | GOG email for login. Overrides EMAIL. |
| GOG_PASSWORD | | GOG password for login. Overrides PASSWORD. |
@ -118,8 +119,8 @@ Run `node prime-gaming` (locally or in Docker).
Claiming the Amazon Games works out-of-the-box, however, for games on external stores you need to either link your account or redeem a key.
- Stores that require account linking: Epic Games, Battle.net.
- Stores that require redeeming a key: Origin, GOG.com, Microsoft Games, Legacy Games.
- Stores that require account linking: Epic Games, Battle.net, Origin.
- Stores that require redeeming a key: GOG.com, Microsoft Games, Legacy Games.
Keys and URLs are printed to the console, included in notifications and saved in `data/prime-gaming.json`. A screenshot of the page with the key is also saved to `data/screenshots`.
[TODO](https://github.com/vogler/free-games-claimer/issues/5): ~~redeem keys on external stores.~~