new Constellation(agent, constellationId)
Create a new Constellation for the given agent
provider and specific
constellationId
.
Parameters:
Name | Type | Description |
---|---|---|
agent |
ESIAgent | The agent used to generate web requests |
constellationId |
Number | The constellation id that is used for all requests |
Methods
-
info()
-
Get information on a constellation. This route expires daily at 11:05.
This makes an HTTP GET request to
/universe/constellations/{constellation_id}/
. The route version isv1
.On success, this resolves to information about a constellation. An example result is:
{ "constellation_id": 20000009, "name": "Mekashtad", "position": { "x": 67796138757472320, "y": -70591121348560960, "z": -59587016159270070 }, "region_id": 10000001, "systems": [ 20000302 ] }
Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Object>