Class: Stargate

Stargate

An api adapter that provides functions for accessing various details for a stargate specified by id, via functions in the universe ESI endpoints. You should not usually instantiate this directly as its constructor requires an internal api instance.


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 is v1.

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>