Conquer Club

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.

Login method in API?

Postby rollsroyc3 on Thu Oct 17, 2013 10:57 am

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
Corporal 1st Class rollsroyc3
 
Posts: 7
Joined: Mon Mar 23, 2009 9:48 am
Location: Cincinnati OH

Re: Login method in API?

Postby runewake2 on Wed Oct 23, 2013 1:04 am

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
Corporal 1st Class runewake2
Tech Contributor
Tech Contributor
 
Posts: 95
Joined: Sun May 23, 2010 1:50 pm
Location: Betwixt Two Curly Braces

Re: Login method in API?

Postby Woltato on Sat Nov 16, 2013 6:28 am

You don't need to be logged in to access the API.
User avatar
Captain Woltato
 
Posts: 185
Joined: Sat Jan 17, 2009 8:09 pm
Location: Bingley, UK


Return to Tools Development

Who is online

Users browsing this forum: No registered users

cron