HWask / IkariamBot

Bot for the Browser Game Ikariam
GNU General Public License v3.0
0 stars 0 forks source link

login update #1

Open w3s3lqk opened 4 years ago

w3s3lqk commented 4 years ago

Good job but could you please update it as per the new login system? Therefore if it's possible to add server Bulgria/Kappa This information below could be usefull to you:

please check this quote :

"POST https://pixelzirkus.gameforge.com/do/simple -> this will assign you a cookie you will need later POST https://lobby.ikariam.gameforge.com/api/users (whith the email and passwd) -> this will return 400 if the creds are wrong GET https://lobby.ikariam.gameforge.com/...rs/me/accounts -> this will give you all the accounts available for that email GET https://lobby.ikariam.gameforge.com/api/servers -> whis will give you info about the servers available (you may not need it) GET https://lobby.ikariam.gameforge.com/api/users/me/loginLink?id={}&server[language]={}&server[number]={} -> this will return a url GET - url obtained previously - I didn't include the parameters of the POSTs requests, but you can find them in the actual implementation in python -> https://github.com/physics-sp/ikabot...sesion.py#L150

"

ALSO this one

" Currently you are logging in using the "old" url: index.php?view=city&action=loginAvatar&function=lo gin

This method does not work any more, so you need to implement the new way

instead of just that POST to view=city&action=loginAvatar&function=login you will need to make all that requests that i listed before.

ik4bot commented 4 years ago

@w3s3lqk I think this can help solve the issue https://ik4bot.com/