First of all, I hope I am posting in the correct forum, I'm a bit overwhelmed by the amount of forums and posts you've got. Congrats on the amount. If it's in the wrong area, feel free to move it.
Secondly, I'm looking on how to retrieve some data from the browser game Forge of Empires (FoE). I've been looking at a few of the bots I saw posted here but I couldn't figure out how these bots get their data or send any commands.
I am not looking to create another bot, just simply trying to read some data from the servers which would make it easier for me to run my guild and keep track of things.
Using the web console I've found that FoE uses the same link to POST their request per session. (
[where x....x is the unique code]) However, when I enter this link into some code I've got running on a localhost I'm getting a 'NULL' response. Which figures, as when I enter the URL in my browser, it redirects me to the homepage of FoE.My code being the following:
Code:
$url = "https://nl3.forgeofempires.com/game/json?h=xxxxxxxxxxxx"; $data2 = file_get_contents($url); $data1 = json_decode($data2); var_dump($data1);
So can anyone point me in the right direction on how to read information of a specific FoE server? Any help/pointers would be appreciated!
Thanks in advance,
Kind regards,







