Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Oxymoronic
|
Posted - 2007.10.01 22:32:00 -
[1]
Edited by: Oxymoronic on 01/10/2007 22:33:09 When I ask for someone's api key, i can just send them here but as for their character ID, i have to give them instructions to log into their 'My character' area on the official site, click on the character they want, and take the id from the url. This is a bit fiddly! Is there a better alternative? i.e. one step 'click here to get your character id.' option.
|
Ron Hauller
Gallente The Wild Bunch INTERDICTION
|
Posted - 2007.10.01 22:50:00 -
[2]
Edited by: Ron Hauller on 01/10/2007 22:54:08
http://api.eve-online.com/account/Characters.xml.aspx - The apiKey and accountID need to be sent as POST information, quickest way I can guess to do that is make a HTML page. On that page have a form that they enter their apiKey and accountID in, it submits with the POST method to that url. I think that would work, I use a python script to grab the info myself.
That is the EveAPI xml page that has that information. Now they will need to pick through it a bit because it's meant to be read by an xmlparser but it's there.
/me goes back to tinkering with the API information.
*** The above text represents the ramblings of a shaved monkey of some sort, if by chance any of it was in English it should not be taken to represent his corporation or alliance.
Tacos Rule. *** |
Oxymoronic
|
Posted - 2007.10.01 23:15:00 -
[3]
wow, where did you find out about that page? I've been using http://myeve.eve-online.com/api/doc/default.asp for api documentation. It would appear to be incomplete
|
Ron Hauller
Gallente The Wild Bunch INTERDICTION
|
Posted - 2007.10.01 23:26:00 -
[4]
It's referenced somewhere in the documentation but not directly, or maybe a dev blog, I honestly can't remember where right now. Went right into my notes when I spotted it though. *** The above text represents the ramblings of a shaved monkey of some sort, if by chance any of it was in English it should not be taken to represent his corporation or alliance.
Tacos Rule. *** |
Oxymoronic
|
Posted - 2007.10.01 23:29:00 -
[5]
Well thanks for the heads up at least. Time for me to do some investigatin'.
|
zibelthurdos
Archron Dusyfe Industries Pandemic Legion
|
Posted - 2007.10.02 04:22:00 -
[6]
alternatively page needs trust make a form, in this form have 3 text boxes 1 <input type="text" name="userid" value=""> userid from eve api 1 <input type="text" name="apiKey" value=""> apikey from api information 3 <input type="hidden" name="charid" value="<?php echo $_SERVER['HTTP_EVE_CHARID']; ?>">
this you would put in a table, then use
$api=$row_skills['apikey']; $cid=$row_skills['charid']; $uid=$row_skills['acctid']; $dom = domxml_open_file("http://api.eve-online.com/char/CharacterSheet.xml.aspx?apiKey=".$api."&characterID=".$cid."&userID=".$uid); $root = $dom->document_element(); $chkerr = $root->get_elements_by_tagname("error"); foreach ($chkerr as $da){ $code = $da->get_attribute('code'); $errortype = $da->get_content();}
if (isset($code)){echo "there is an error in the API information Code: ".$code." ".$errortype." Please notify this member<Br>";}
to verify the api info is correct
----------------------------------------------- I have come here to chew bubble gum and kick ass, and I'm all out of bubble gum" |
Oxymoronic
|
Posted - 2007.10.04 08:01:00 -
[7]
Hello all again.
@Zib, thanks but what I'm working on doesnt use the IGB.
@Ron Hauller, I cant seem to get that page to work without sending a charid. Am I just being a muppet?
|
Ambo
2nd Outcasters
|
Posted - 2007.10.04 09:55:00 -
[8]
You only need apikey and userID to get data from '/account/Characters.xml.aspx'.
Are you confusing user ID and char ID?
|
Oxymoronic
|
Posted - 2007.10.04 19:27:00 -
[9]
looks like i was, thanks! :)
|
Cypherous
Minmatar Liberty Rogues
|
Posted - 2007.10.06 20:36:00 -
[10]
He might be trying to use the skillsheet thats floating around that uses userid, API keey charID and charname and the easiest way to get someones char ID is rightclick them ingame and hit capture portrait, the default name used for the image is his/her charID ---------
Liberty Rogues Website
|
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |