new Groups(agent)
Create a new Groups instance using the given agent.
Parameters:
| Name | Type | Description |
|---|---|---|
agent |
ESIAgent | The ESI agent |
Methods
-
all(page)
-
Get a list of item groups. This route expires daily at 11:05.
This makes an HTTP GET request to
/universe/groups/. The route version isv1.pagemust be at least1.On success, this resolves to a list of item group ids.
Parameters:
Name Type Default Description pageNumber 0 Which page to query. If 0, then all pages are returned concatenated into a single array.
Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Array.<Number>>
-
get(id)
-
Create a new Group end point targeting the particular group by
id.Parameters:
Name Type Description idNumber The group id
Returns:
- Type
- Group