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