Page 1 of 1

Login method in API?

PostPosted: Thu Oct 17, 2013 10:57 am
by rollsroyc3
Does a login method exist for the api?

If not does anyone have any javascript examples of posting to the login page with credentials and setting up the cookie?

Thanks,
Andrew

Re: Login method in API?

PostPosted: Wed Oct 23, 2013 1:04 am
by runewake2
I'm away from my PC right now, but I do this in Conqueror. I just use document.getElementById() and set the text. I experienced weird behavior when I added a form.submit() to the end. Javascript isn't really my forte, but this method has worked when I've needed it.

Conquer Clubs public API http://www.conquerclub.com/api.php does not help in this case.

EDIT: Here is the exact Javascript I use in Conqueror:

Code: Select all
//0 and 1 are the username and password respectively.
document.getElementById("username").value="{0}";
document.getElementById("password").value="{1}";


I would recommend constructing your code around this failing as a site redesign could kill your program otherwise and that's not ideal.

Re: Login method in API?

PostPosted: Sat Nov 16, 2013 6:28 am
by Woltato
You don't need to be logged in to access the API.