Class: Category

Category

An api adapter for dealing with a single item category, currently only supporting fetching simple information.


new Category(agent, categoryId)

Create a new Category for the given agent provider and specific categoryId.

Parameters:
Name Type Description
agent ESIAgent

The agent used to generate web requests

categoryId Number

The category id that is used for all requests

Methods


info()

Get information of an item category. This route expires daily at 11:05.

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

On success, this resolves to information about an item category. An example result is:

{
  "category_id": 6,
  "groups": [
    25
  ],
  "name": "Ship",
  "published": true
}
Returns:

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

Type
Promise.<Object>