Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Zirketch Kruug
Minmatar Fawkes' Loyal Professionals Reckoning.
|
Posted - 2010.06.13 10:50:00 -
[1]
I was wondering if anyone has had any experience and can provide any hints or tips to working with the eve api in xcode. Personal small project is to try and start making some osx based eve tools using the eve api, short tern is simple stuff as I am still learning to program (in my free time), however long term to is to develop something similar to EFT.
Any advice for a noob hobbyist programmer is welcome.
Zirk
|
Shay Dark
|
Posted - 2010.06.13 11:52:00 -
[2]
Hi!
Here are some snippets that may help you... its not "compilable" since I have copied stuff from different places but it should be easy enough to make it work. /Patrik
#define EVE_SERVER @"http://api.eve-online.com"" #define ACCOUNT_CHARACTERS@"/account/Characters.xml.aspx?" #define SERVICE_ACCOUNT_CHARACTERS EVE_SERVER ACCOUNT_CHARACTERS
-(NSData*)AccountCharactersXMLUsingApiKey:(NSString*)aApiKey andUserId: (NSString*)aEveUserId andError: (NSError**)aError { NSString *urlString = [NSString stringWithFormat:@"%@apikey=%@&userid=%@", SERVICE_ACCOUNT_CHARACTERS, aApiKey, aEveUserId ];
NSURL *url = [NSURL URLWithString:urlString]; NSURLRequest *urlRequest = [NSURLRequest requestWithURL: url cachePolicy: NSURLRequestReturnCacheDataElseLoad timeoutInterval: 30];
// Fetch XMP-response NSURLResponse *response; NSData *urlData = [NSURLConnectionsendSynchronousRequest: urlRequest returningResponse:&response error: aError ]; return urlData; }
-(IBAction)fetchEveData:(id)sender {
NSError *error; NSData *urlData = [self AccountCharactersXMLUsingApiKey:EVE_API_KEY andUserId:EVE_USER_ID andError: &error ]; // Set member to response xml-"document" myXMLDocument = [[NSXMLDocument alloc] initWithData:urlData options:NSXMLDocumentTidyXML error: &error ]; NSXMLNode *aNode = [myXMLDocument rootElement]; }
|
Zirketch Kruug
Minmatar Fawkes' Loyal Professionals Reckoning.
|
Posted - 2010.06.13 14:41:00 -
[3]
Thank you, that should give me a good starting point. Could be a wee while before I have produced anything worth showing to anyone... but hey if I dont try I will never learn.
again.. thank you.
|
Shay Dark
|
Posted - 2010.06.13 15:42:00 -
[4]
Glad to help! Good luck!
|
TheBaptist
|
Posted - 2010.06.17 14:27:00 -
[5]
Not Xcode, but used DashCode for a widget...ECM
If you ever head in the dashcode direction, feel free to give me a buzz.
-- ECM: Eve Character Monitor Widget for OS X |
Aurora Morgan
The Synenose Accord
|
Posted - 2010.06.20 11:50:00 -
[6]
It is marginally full of nuclear fallout, but http://github.com/JensNockert/ceres .
|
Spark TUExplode
|
Posted - 2010.06.28 02:09:00 -
[7]
Hi Zirketch: I think somebody has beaten you on your project, Chris Mille and Jonathan Rumion. Although it would be great if you continue it as the project is on hold (they are not developing further) but working as they left it, as I have compiled it as it is opensource and it works. Offcourse it is in objective C, all source code is for X-Code. The classes are clear and straight forward, from this you can create any front GUI or application, for the iPhone, iPad or a Macinstosh
You can find all the source code at: http://www.fsdev.net/projects/eve-api-objc/repository
The overview is at: http://www.fsdev.net/projects/eve-api-objc
Please keep me informed as of your progress, as I also interested in further developing applications for the Mac that Interact with EVE. At this point i have been able to interact through Filemaker to the dump files of the EVE database through ODBC driver to the MySQL database. best regards Spark
|
Keiichi Nailo
Gallente Time and Relative Dimension in Space
|
Posted - 2010.06.29 02:25:00 -
[8]
I'd love to help out if you want to work as a team.
I'm currently in school learning other languages, my school doesn't teach Objective-C or XCode, but would love to give it a shot with you.
Please let me know, you can contact me in game at this character.
|
Erich Herrmann
|
Posted - 2010.06.29 10:55:00 -
[9]
Originally by: Keiichi Nailo I'd love to help out if you want to work as a team.
I'm not a coder, but as a Mac user and a member of this community for over two years, I've seen too many 3rd Party applications for Mac released, only for development to slow down and fizzle out after a couple of months :(
I'm not criticising anyone or anything. I appreciate that the work you guys do is unpaid and done in your free time, but it'd be nice to see a group of people work together, so if one person takes a break, there are other people to take over. ---
Originally by: Mire Stoude I think the GM in question told you to post here because they can't insult you, but they know the players can and will.
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |