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.
 

Yapeal PHP API library (version 1.0.5)

First post
Author
Sable Blitzmann
24th Imperial Crusade
Amarr Empire
#61 - 2011-10-27 16:45:35 UTC
Dragonaire wrote:
Did you export from either your local working copy or directly from the SVN because it looks like it's finding the same API twice which the only other time I've seen that is when someone was trying to use their working copy directly without export.

Now that you have a working copy you can export from it to where you plan on

running Yapeal.

svn export --force /path/to/my/wc/ /directory/where/yapeal/should/be/installed/

Let me know if that doesn't clear it up. I'm testing some other changes right now that should help with this problem as well. Once I'm sure there aren't any problems with the changes I'm looking at I'll let everyone know and have to update some of the docs to reflect the changes.


Whoops, my bad then. Completely forgot to export. All seem well. I'm setting it up now, so I'll let you know if I run into any problems along the way. Thanks!
Sable Blitzmann
24th Imperial Crusade
Amarr Empire
#62 - 2011-10-27 17:00:55 UTC
Just a note: I applaud you for trying to make it as user friendly as possible, but it still has a long way to go in that department. Understandable due to the projects' complexity. Last time I tried this was way back when there was a web UI for setting it up and showing you how you could insert everything into the DB and whatnot. I personally wouldn't mind if that made a comeback. ;)

Question: Say you have 2 keys, one that is essentially a Full API key with all the characters on the account and all the APIs unlocked, and another key which just has your main (Sable, in this case) and a few APIs unlocked for use. Which key does Yapeal use if they are both present? Also, would we enter Sable into `utilRegisteredCharacter` both times for each key? How does one deal with this redundancy? Should we, the developers, check to make sure we don't already have a similar key belonging to the same character or whatnot?
Dragonaire
Here there be Dragons
#63 - 2011-10-27 22:30:28 UTC
It can use either or both keys but basically what happens is which key it selects to use first will get everything it can within time / mask limits and then when it gets to the other key if any of this APIs isn't done yet they will be handled. Read the comments in yapeal-example.ini for how registered_mode works in most cases you don't need to even use the utilRegisteredCharacter or corporation tables. There's also a few more notes in the class/SectionChar.php and class/SectionCorp.php file about how things work.

To better understand how to add/remove/etc chars and corps look through the wiki and the classes in class/util/ that should help make using the util* tables easier.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Zaepho
GoonWaffe
Goonswarm Federation
#64 - 2011-10-28 15:01:14 UTC
Dragonaire Have you considered leveraging Log4PHP for all of the internal logging? this would allow people to configure logging to their specific level of verbosity and would allow you to have very verbose logs for troubleshooting, with only Warnings/Errors for production runs. Also it gives people the ability to log to STDOUT, a file, a DB, syslog, etc at their own choice simply by editing a single XML file.

I have the automated/scheduled part of my project using it and I am able to log trace level and above events to a big fat daily log file and only warnings/errors to STDOUT so that cron emails me when it needs attention and I can refer back to the low level logs events for deeper troubleshooting/verification of what's happening.

http://logging.apache.org/log4php/
Dragonaire
Here there be Dragons
#65 - 2011-10-28 22:28:23 UTC
Hadn't heard of it but I'll take a look.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Norian Lonark
Black Thorne Corporation
#66 - 2011-10-30 17:32:21 UTC
Hi Everyone,

Firstly thank you Dragonaire for the time and effort you put into this it is much appreciated.

Now for my question... and sorry if its a bit dumb of me to ask but all this sort of stuff is very new for me.

I am using Yapeal to basically help me with getting information about industry jobs. Currently I have it installed on windows PC running XAMPP and its all working great I have the tables populated with the data about the jobs.

My question that I have is what is the best way to get this working on my hosted domain? Can I just copy the sql database and files that are in the Yapeal directory up to my server and it will work as is or are there special extra steps or is this just not going to be possible?

I am sorry if its already been posted I have read through all this thread and searched as best I can.

Many thanks for any help and advice.

Nori.

Start wide, expand further, and never look back

Dragonaire
Here there be Dragons
#67 - 2011-10-30 18:06:12 UTC
Generally just copying everything should work but if your host gives you ssh access it's usually better to install it and then just copy over your config/yapeal.ini and anything you need from the util* tables. The advantage to doing it this way is updates to Yapeal should be easier to do since you can just follow instructions from INSTALL.txt and don't have an extra copy step to get from your local machine to the host machine and maybe miss something.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

PsyKzz
Bat Country
Pandemic Horde
#68 - 2011-10-30 18:14:58 UTC
Can you support adding a character id to the db and fetch the publicly available data for them?

Meh.

Miko Kiun
Doomheim
#69 - 2011-10-30 18:26:52 UTC
I too would like the public info from /eve/CharacterInfo.xml.aspx
primarily the corp history Smile

Also, could someone with more experience with yapeal help me to understand walking the wallet journal and transactions? also, I'm guessing it's the same principal with getting mail message bodies???

thanks in advance Big smile
Dragonaire
Here there be Dragons
#70 - 2011-10-30 18:42:48 UTC
If you are talking about /eve/CharacterID.xml.aspx and /eve/CharacterName.xml.aspx they are really outside of the scope of what Yapeal does and it's unlikely I'll add support for them except maybe in some kind of util script if I find and need for it or a few extra days with nothing else to do Blink

If you mean /eve/CharacterInfo.xml.aspx it would have already been done except CCP was stupid and put an API that requires apiKeys and vCodes in the eve section instead of where it belonged in char or account. You can get all the same information from the other APIs anyway so I've never seen why anyone would find it that useful as it is. I've got some ideas for changes to Yapeal that MAY in some distance future be able to overcome CCP's stupidity on the placement of this API but let's just say being able to support this API is going to be purely an afterthought in any changes.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

PsyKzz
Bat Country
Pandemic Horde
#71 - 2011-10-30 18:46:39 UTC
Dragonaire wrote:
You can get all the same information from the other APIs anyway so I've never seen why anyone would find it that useful as it is.


With the application im trying to make i just want to minimise the the different number of systems i have to use.

Could you not make it possible to add a character ID to the utilRegisteredCharacter and get yapeal to download a charCharacterSheet for them?

Also off topic, CorpCorporationContactList should populate without the need for a corp key, it is available to every member of a corp regardless and yapeal should accommodate to that.

Meh.

Dragonaire
Here there be Dragons
#72 - 2011-10-30 18:47:25 UTC
Quote:
Also, could someone with more experience with yapeal help me to understand walking the wallet journal and transactions? also, I'm guessing it's the same principal with getting mail message bodies???
Yapeal should do this for you by default but CCP has made some changes in the past that may have broke it and I don't have enough activity on my chars to do any testing Sad

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

PsyKzz
Bat Country
Pandemic Horde
#73 - 2011-10-30 18:51:36 UTC
Dragonaire wrote:
Quote:
Also, could someone with more experience with yapeal help me to understand walking the wallet journal and transactions? also, I'm guessing it's the same principal with getting mail message bodies???
Yapeal should do this for you by default but CCP has made some changes in the past that may have broke it and I don't have enough activity on my chars to do any testing Sad


You dont need to do anything just SELECT * WHERE ownerID={YOUR_GUY} SORT BY data ASC / DESC

That would just list them in order. You wouldn't have to worry about anything.

Meh.

Dragonaire
Here there be Dragons
#74 - 2011-10-30 18:53:45 UTC
Quote:
Could you not make it possible to add a character ID to the utilRegisteredCharacter and get yapeal to download a charCharacterSheet for them?
Yapeal doesn't even look at that table without a key in utilRegisteredKey so no that won't work.

Quote:
Also off topic, CorpCorporationContactList should populate without the need for a corp key, it is available to every member of a corp regardless and yapeal should accommodate to that.
All of the corp APIs have been changed to require a key from a director or the CEO and there is no way around that.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

PsyKzz
Bat Country
Pandemic Horde
#75 - 2011-10-30 18:56:07 UTC
Quote:
Also off topic, CorpCorporationContactList should populate without the need for a corp key, it is available to every member of a corp regardless and yapeal should accommodate to that.
All of the corp APIs have been changed to require a key from a director or the CEO and there is no way around that.
[/quote]

Can you not add a bypass? OR a dummy key that runs if a dummy key is input?


Meh.

Dragonaire
Here there be Dragons
#76 - 2011-10-30 19:01:52 UTC
Public access to the corp APIs has been turned off you have to have a corp key now to access them there isn't a way to bypass.

Or to put it another way NO and it can't be done

Is that clear enough?

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

PsyKzz
Bat Country
Pandemic Horde
#77 - 2011-10-30 19:07:27 UTC
Dragonaire wrote:
Public access to the corp APIs has been turned off you have to have a corp key now to access them there isn't a way to bypass.

Or to put it another way NO and it can't be done

Is that clear enough?


http://api.eveonline.com/corp/CorporationSheet.xml.aspx?corporationID=238510404

I beg to differ...

Meh.

Razzor Death
The Scope
Gallente Federation
#78 - 2011-10-30 19:09:26 UTC
Dam you just got owned son
Miko Kiun
Doomheim
#79 - 2011-10-30 19:14:09 UTC
Dragonaire wrote:
If you are talking about /eve/CharacterID.xml.aspx and /eve/CharacterName.xml.aspx they are really outside of the scope of what Yapeal does and it's unlikely I'll add support for them except maybe in some kind of util script if I find and need for it or a few extra days with nothing else to do Blink

If you mean /eve/CharacterInfo.xml.aspx it would have already been done except CCP was stupid and put an API that requires apiKeys and vCodes in the eve section instead of where it belonged in char or account. You can get all the same information from the other APIs anyway so I've never seen why anyone would find it that useful as it is. I've got some ideas for changes to Yapeal that MAY in some distance future be able to overcome CCP's stupidity on the placement of this API but let's just say being able to support this API is going to be purely an afterthought in any changes.


I'm confused, characterinfo doesn't require keys.
https://api.eveonline.com/eve/CharacterInfo.xml.aspx?characterID=90338329
Is corp history accessed somewhere else? I can't find it anywhere in the yapeal tables
Dragonaire
Here there be Dragons
#80 - 2011-10-30 19:27:35 UTC
Not really since that ability is going away when old keys do from what I understand and once again by design Yapeal expects to have keys etc for anything in account, char, or corp sections in the requests plus the database expect the full data you only get from having the keys.

Yapeal is a made to be used when you have the required keys etc not for just general random access to the APIs if that's what you need there are several other libraries for that but of course it's up to you then to parser the XML and put it in the database yourself too Blink

Instead of just trying to say indirectly that Yapeal is doing something wrong why don't you learn how to use it correctly first.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.