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.
 

List API corporations

Author
yaxon
Everyb00dy Lies
Legion of xXDEATHXx
#1 - 2015-06-14 12:40:20 UTC
Dear programmers api you have a list of alliances in EVE.
From the list, it is clear that there is information about corporationID
How to be a list of names of corporations?

The page clearly states:
or for limited view corporationID ...
ie I take the forms requests with limited data.

1. In the first case

$ Src = "https://api.eveonline.com/corp/CorporationSheet.xml.aspx?corporationID=".$corporationID;
$ Fsrc = fopen ($ src, 'r'); // False
I get the error: Failed open to stream

2. In the second case,

$ Src = "https://api.eveonline.com/corp/CorporationSheet.xml.aspx?corporationID=".$corporationID;
$ Dst = "file.xml";
copy ($ src, $ dst))
I get the error: Failed open to stream

3. In the third case,

$ CorporationID = '98104879';
$ File_corporationsXML = "https://api.eveonline.com/corp/CorporationSheet.xml.aspx?corporationID=".$corporationID;
$ Xmlcorp = simplexml_load_string (file_get_contents ($ file_corporationsXML));
I get the error: Failed open to stream

In direct casting everything in a browser is opened.
What's wrong?!

Roamed the expanses of the Internet, I came across XML
And according to the site
But he does not seem to date ?!
Dragonaire
Here there be Dragons
#2 - 2015-06-14 18:40:03 UTC
I'll make a guess here that your php.ini is set to block all outgoing connections by fopen etc. Some hosting sites do this for 'security' they say. If that's the case I'd find a better host myself as most don't do that. You might also try using curl instead. You could try my PHP Yapeal library as well and see if it works for you since it uses curl or fopen etc as backup if curl is not available.

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

yaxon
Everyb00dy Lies
Legion of xXDEATHXx
#3 - 2015-06-14 19:37:17 UTC
no,
allow_url_fopen On On
it's not that likely, everything was simple firewall
yaxon
Everyb00dy Lies
Legion of xXDEATHXx
#4 - 2015-06-28 08:55:44 UTC  |  Edited by: yaxon
whether it is possible using the api/json to get chat log
Ortho Loess
Escalated.
OnlyFleets.
#5 - 2015-06-29 11:34:35 UTC
I don't understand all of what you are asking, but here's some bits:

List of corporations: The API lists all alliances and for each alliance all of its member corps. There is no list of all corps, so no way to get those which are not in an alliance.

EveWho is a good source for info, but it will not be complete.

Chatlogs: Are not available from API (nothing chat related is). They are saved by the client and can be scraped from your machine fairly easily (chat logging has to be turned on)