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 isv1
.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>