Login method in API?

Discuss developing tools and get details on Conquer Club's API.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
Post Reply
rollsroyc3
Posts: 7
Joined: Mon Mar 23, 2009 9:48 am
Location: Cincinnati OH

Login method in API?

Post 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
User avatar
runewake2
Posts: 95
Joined: Sun May 23, 2010 1:50 pm
Gender: Male
Location: Betwixt Two Curly Braces
Contact:

Re: Login method in API?

Post 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.
Conquer Club Mobile Apps: Conqueror for Windows Phone and Windows 8
Conqueror's going Open Source: Conqueror on CodePlex
User avatar
Woltato
Posts: 192
Joined: Sat Jan 17, 2009 8:09 pm
Gender: Male
Location: Bingley, UK

Re: Login method in API?

Post by Woltato »

You don't need to be logged in to access the API.
Post Reply

Return to “Tools Development”