Class: PlanetaryInteraction

PlanetaryInteraction

An api adapter that provides functions for accessing the non-authenticated planetary interaction ESI end points. You should not usually instantiate this directly as its constructor requires an internal api instance.


new PlanetaryInteraction(agent)

Create a new PlanetaryInteraction instance using the given agent.

Parameters:
Name Type Description
agent ESIAgent

The ESI agent

Methods


schematic(id)

Get information on a planetary factory schematic. This route is cached for up to 3600 seconds.

This makes an HTTP GET request to /universe/schematics/{schematic_id}/. The route version is v1.

On success, this resolves to public data about a schematic. An example result is:

{
  "cycle_time": 1800,
  "schematic_name": "Bacteria"
}
Parameters:
Name Type Description
id Number

A PI schematic ID.

Returns:

A Promise that resolves to the parsed JSON of the response.

Type
Promise.<Object>