new Stargate(agent, stargateId)
Create a new Stargate for the given agent
provider and specific
stargateId
.
Parameters:
Name | Type | Description |
---|---|---|
agent |
ESIAgent | The agent used to generate web requests |
stargateId |
Number | The stargate id that is used for all requests |
Methods
-
info()
-
Get information on a stargate. This route expires daily at 11:05.
This makes an HTTP GET request to
/universe/stargates/{stargate_id}/
. The route version isv1
.On success, this resolves to information about a stargate. An example result is:
{ "destination": { "stargate_id": 50000056, "system_id": 30000001 }, "name": "Stargate (Tanoo)", "position": { "x": -101092761600, "y": 5279539200, "z": 1550503403520 }, "stargate_id": 50000342, "system_id": 30000003, "type_id": 29624 }
Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Object>