Page 1 of 1

UDP Api questions

Posted: Fri May 12, 2006 4:25 pm
by oo22
I've just got a few questions about some API responses i've recvieved before..

firstly, after logging in with good credentials every thing is fine. After attempting to login again with some bad credentials, the server returns a sucessful login with the session from the previouse login.

I'm assuming that the server will not discard the good session for the bad one here.. And is there anything like a 4xx ALREADY_LOGGED_IN return code?

and also, What is the difference beween

Code: Select all

CLIENT_VERSION_OUTDATED   503
and

Code: Select all

LOGIN_ACCEPTED_NEW_VER   201
If attempting to log in and getting a 503, does it mean my login failed AND there is a new version? (like the 201 code)

Thanks for any insight into this..
oo22

Posted: Fri May 12, 2006 5:15 pm
by epoximator
I'm assuming that the server will not discard the good session for the bad one here.. And is there anything like a 4xx ALREADY_LOGGED_IN return code?
there is only one session. and no such message. ALREADY_LOGGED_IN == LOGIN_ACCEPTED

CLIENT_VERSION_OUTDATED -> the udp server has been updated and does not support your client any longer. (protover is too low)

LOGIN_ACCEPTED_NEW_VER -> the _client_ has been updated. you, as the developer, control this @ http://anidb.info/perl-bin/animedb.pl?show=client

Posted: Fri May 12, 2006 10:50 pm
by oo22
Thank you. I wasnt too sure on the differences, this helps a lot. Should I note them in the wiki?

Posted: Sat May 13, 2006 7:27 am
by epoximator
feel free to improve the wiki page, yes