<< Back to Programming Forum   Search

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

Banzai Otis
Level 38
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: 2016-04-02 00:33:39

Fizzer 
Level 64

Warzone 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: 2016-04-02 00:38:23


Dublin Warrior 
Level 57
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: 2016-04-02 02:35:30

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