Play
Multi-Player
Coins
Community
Settings
Help
Community   Maps   Forum   Mail   Ladders   Clans   Recent Games
Sign In | Sign Up
<< Back to Programming Forum   

Posts 1 - 4 of 4   
API list of games played: 4/1/2016 23:58:25

Banzai Otis 
Level 37
Report
Hi all,

I'm diving into the API and can't find an easy way to get a list of gameIDs from all the games I've played. I could do it manually, but that would take quite a while. It also seems like the gameIDs are sequential and numeric, so I could brute force it by trying to query all of them and only keeping the IDs for those that don't throw an error and in which I played. However, I want to respect Fizzer's request to not bombard the API.

So, any thoughts?
API list of games played: 4/2/2016 00:33:39

Fizzer 
Level 57

WarLight Creator
Report
You're right the API lacks that. But there's an easy way to get them without violating the TOS. Just go to https://www.warlight.net/ProfileEditFavoriteGames, save the text as a file, and run a simple regex against it like \(\d+\)

Edited 4/2/2016 00:57:17
API list of games played: 4/2/2016 00:38:23

Dublin Warrior
Level 40
Report
I wish you luck, and thanks for not bombarding the API. :)

Edit: Cool!! Thanks Mr. Fizzer. :)

Edited 4/2/2016 00:39:31
API list of games played: 4/2/2016 02:35:30

Banzai Otis 
Level 37
Report
Perfect, that's an easy solution. Thanks Fizzer!
Posts 1 - 4 of 4   

Contact | About WarLight | Play Risk Online | Multiplayer Strategy Game | Challenge Friends, Win Money | Skill Game | Terms of Service