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.
 

Corp structures endpoint - Structure Name

Author
Blacksmoke16
Imperial Academy
#1 - 2016-09-24 17:54:12 UTC
After working with the corporation structures crest endpoint i noticed that it returns a lot of useful information about that structure, but not the actual name of the structure. Could that get added to the response?
Salgare
Center for Advanced Studies
Gallente Federation
#2 - 2016-09-25 16:14:11 UTC  |  Edited by: Salgare
Blacksmoke16 wrote:
After working with the corporation structures crest endpoint i noticed that it returns a lot of useful information about that structure, but not the actual name of the structure. Could that get added to the response?


What is the url of this "corporation structures" I've only found rootUrl + "/corporations/npccorps/"
but I have not finished implementing and chasing out href's from that endpoint yet.
Is this something different?


I think I found it down the allianceCollection path

https://api-sisi.testeveonline.com/alliances/99000006/

which contains a list of corporations in the alliance - this does contain the name however
"https://api-sisi.testeveonline.com/corporations/665335352/",

{"structures": "https://api-sisi.testeveonline.com/corporations/665335352/structures/"}

crap, which gives me a broken link to structures?
Blacksmoke16
Imperial Academy
#3 - 2016-09-25 17:12:00 UTC
https://crest-tq.eveonline.com/corporations/< INT CORPID >/structures/

Requires the corporationStructuresRead scope, do a GET request and it will return a list of citadels owned by that corp. Along with information such as its current state, services, when fuel runs out, who/where/what it is, when it is vulnerable. Are also able to change a structures vulnerability times using a crest endpoint, but i have yet to mess with it. Requires station manager in game i think as well.

Salgare
Center for Advanced Studies
Gallente Federation
#4 - 2016-09-25 17:21:44 UTC  |  Edited by: Salgare
I guess one has to be an owner/director of a corporation to get this read scope. and without that corp owning a citadel I guess sisi is my best friend? Is that how you get into this stuff?
Blacksmoke16
Imperial Academy
#5 - 2016-09-25 17:27:50 UTC  |  Edited by: Blacksmoke16
I do not think we are talking about the same thing.

When i say it doesn't include the name, im refering to the name of the citadel in the /structures corp endpoint. Below is one of the entries returned from the /structures endpoint. It includes a bunch of stuff about that structure, but doesnt include the name of the citadel, which should be included.

EX:

{
      "solarSystem": {
        "id_str": "30002909",
        "href": "https://crest-tq.eveonline.com/solarsystems/30002909/",
        "id": 30002909,
        "name": "2O9G-D"
      },
      "nextVulnWindow": "[(1, 10), (2, 11), (3, 12)]",
      "corporation": {
        "name": "Resilience.",
        "isNPC": false,
        "href": "https://crest-tq.eveonline.com/corporations/98019139/",
        "id_str": "98019139",
        "logo": {
          "32x32": {
            "href": "http://imageserver.eveonline.com/Corporation/98019139_32.png"
          },
          "64x64": {
            "href": "http://imageserver.eveonline.com/Corporation/98019139_64.png"
          },
          "128x128": {
            "href": "http://imageserver.eveonline.com/Corporation/98019139_128.png"
          },
          "256x256": {
            "href": "http://imageserver.eveonline.com/Corporation/98019139_256.png"
          }
        },
        "id": 98019139
      },
      "currentVulnWindow": "[(1, 10), (2, 11), (3, 12)]",
      "stateTimerStart": "2016-09-25T00:04:29",
      "profileID_str": "1234",
      "updateVulnWindow": {
        "href": "https://crest-tq.eveonline.com/structures/1022125876064/"
      },
      "stateTimerEnd": "2016-09-26T00:04:29",
      "profileID": 6172,
      "type": {
        "id_str": "35832",
        "href": "https://crest-tq.eveonline.com/inventory/types/35832/",
        "id": 35832,
        "name": "Astrahus"
      },
      "id": 1022125876064,
      "id_str": "1022125876064"
    }


EDIT: Yes, director/ceo or have station management role in game.
Salgare
Center for Advanced Studies
Gallente Federation
#6 - 2016-09-25 17:29:27 UTC  |  Edited by: Salgare
yea I was confused ... at least I own my own corp and will need to go build a citadel on sisi ... is there an easier way?

are there perhaps citadels on sisi that I can get roles in?
Salgare
Center for Advanced Studies
Gallente Federation
#7 - 2016-09-25 17:36:03 UTC
would you please give me the accept/mime/uid string for the structures json object graph?
Blacksmoke16
Imperial Academy
#8 - 2016-09-25 17:42:34 UTC
Quote:
yea I was confused ... at least I own my own corp and will need to go build a citadel on sisi ... is there an easier way?

are there perhaps citadels on sisi that I can get roles in?


Easiest way would to just log onto sisi, buy a citadel, anchor it somewhere and should have data to use. If you don't have the required roles in your corp can just leave and make your own on sisi.

Salgare wrote:
would you please give me the accept/mime/uid string for the structures json object graph?



I have no idea what that means.
Salgare
Center for Advanced Studies
Gallente Federation
#9 - 2016-09-25 17:53:36 UTC  |  Edited by: Salgare
Blacksmoke16 wrote:

Salgare wrote:
would you please give me the accept/mime/uid string for the structures json object graph?



I have no idea what that means.



sorry,

in OPTIONS request "schema" its named "acceptType" in REST its actually the json mime type, which if you remove the "application/" It's a Unique ID (uid)

for example:

"application/vnd.ccp.eve.Corporation-v1+json"

it turns out this one is friendly with /validId/ id placeholders and is

"application/vnd.ccp.eve.CorporationStructuresCollection-v1+json"

some OPTIONS request will respond with "/0/" id place holders, all character and it seems corporation endpoints will not. My guess is all endpoints requiring a scope will not, but seem to given a valid id, which is broken
Blacksmoke16
Imperial Academy
#10 - 2016-09-25 18:26:10 UTC
application/vnd.ccp.eve.CorporationStructuresCollection-v1+json
Salgare
Center for Advanced Studies
Gallente Federation
#11 - 2016-09-27 03:56:44 UTC  |  Edited by: Salgare
sisi 401 auth errors.

edited this by mistake
Blacksmoke16
Imperial Academy
#12 - 2016-09-27 04:45:10 UTC
Assume you set up your app and used the corporationStructuresRead scope on the test server dev site?

https://developers.testeveonline.com/
Salgare
Center for Advanced Studies
Gallente Federation
#13 - 2016-09-27 11:47:03 UTC  |  Edited by: Salgare
Blacksmoke16 wrote:
Assume you set up your app and used the corporationStructuresRead scope on the test server dev site?

https://developers.testeveonline.com/


thanks