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
Login method in API?
Moderator: Tech Team
Forum rules
Please read the Community Guidelines before posting.
Please read the Community Guidelines before posting.
-
rollsroyc3
- Posts: 7
- Joined: Mon Mar 23, 2009 9:48 am
- Location: Cincinnati OH
- runewake2
- Posts: 95
- Joined: Sun May 23, 2010 1:50 pm
- Gender: Male
- Location: Betwixt Two Curly Braces
- Contact:
Re: Login method in API?
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:
I would recommend constructing your code around this failing as a site redesign could kill your program otherwise and that's not ideal.
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.
Conquer Club Mobile Apps: Conqueror for Windows Phone and Windows 8
Conqueror's going Open Source: Conqueror on CodePlex
Conqueror's going Open Source: Conqueror on CodePlex
Re: Login method in API?
You don't need to be logged in to access the API.