These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Couple of questions about API and websites

Author
Quibblin
Native Freshfood
Minmatar Republic
#1 - 2011-10-15 01:06:21 UTC  |  Edited by: Quibblin
I am making a website that is due to launch in a month or two, I don't know anything about putting API on my website and what not. I am using PHP based site, fyi yes its a gambling site.

I am looking for a few answers


How do I make it so u must register from the ingame browser and it auto detects your character. after ingame register you may login out of game.


How do I add the eve API to auto update the website like if someone deposits isk into my wallet with a reason code that I specify, how do I make the web detect that from the API and auto update the players on site funds.

no I am not a idiot about websites I am just a total noob when it comes to API stuff.


just as a example... how does somer do it ingame register and then auto updates from api for on site funds. with corporate deposit. and or player.
Lutz Major
Austriae Est Imperare Orbi Universo
#2 - 2011-10-15 05:41:28 UTC
Wow. One month and No knowledge about the IGB or the API (perks)? Good luck with your project :)

Anyway, to get character information from the IGB, the user must trust your site (Google for EVE_TRUSTED), then you can read some of the characters attributes like id, name, location, etc

Then you must continuously poll (when the cachedUntil timer runs out) your character or corporate WalletJournal and look for either the reason or - I think - the ownerID2 (the sender of) of all incoming entries. Add the amount to your user account and you are done.
Trenker
#3 - 2011-10-15 09:32:10 UTC  |  Edited by: Trenker
Quibblin wrote:
How do I make it so u must register from the ingame browser and it auto detects your character. after ingame register you may login out of game.

Detect the browser (user agent, js methods) and ask for trust
JS functions: http://wiki.eve-id.net/IGB_Javascript_Functions
HTTP headers sent: http://wiki.eveonline.com/en/wiki/IGB_Headers

Quibblin wrote:
How do I add the eve API to auto update the website like if someone deposits isk into my wallet with a reason code that I specify, how do I make the web detect that from the API and auto update the players on site funds.

Query the Wallet Journal (with an API tool like Pheal) and search for the reason.
API http://wiki.eve-id.net/APIv2_Char_JournalEntries_XML
Pheal: https://github.com/ppetermann/pheal

Quibblin wrote:
just as a example... how does somer do it ingame register and then auto updates from api for on site funds. with corporate deposit. and or player.

Corp and player have different API functions

Player: http://wiki.eve-id.net/APIv2_Char_JournalEntries_XML
Corp: http://wiki.eve-id.net/APIv2_Corp_JournalEntries_XML

But like Lutz Major already said, two months with no experience yet is quite "ambitious"
Hel O'Ween
Men On A Mission
#4 - 2011-10-15 17:31:38 UTC
Trenker wrote:
But like Lutz Major already said, two months with no experience yet is quite "ambitious"


Shocked

And as this is going to be a gambling website, this for sure is going to end well ...

To the OP: may I suggest you rent out a coder who at least checks (if not write it) your code after you're done?

EVEWalletAware - an offline wallet manager.