usi-sweet-sure / EnsuredEnergy

Repository for the sustainable development tycoon game, being developped under the SURE project.
GNU General Public License v3.0
2 stars 6 forks source link

update online interface API #131

Open daveb-dev opened 6 months ago

daveb-dev commented 6 months ago

@Dobios the new site of backend is https://sure.euler.usi.ch The request API to set increment/decrease of values is the following the method is ups (update) res_id is the user prm_id is referred to the quantity that you would change yr is the year that you introduce the change. tj is the value that you assign to the value of that yr if you set xsl = 0, you get the xml
https://sure.euler.usi.ch/prm.php?mth=ups&res_id=3&prm_id=151&tj=200&yr=2023&xsl=1 To reset all values relative to given user and parameter id method is called clr
https://sure.euler.usi.ch/prm.php?mth=clr&res_id=3&prm_id=151&yr=2023&xsl=1