new OpportunityGroup(agent, groupId)
Create a new OpportunityGroup identified as groupId
.
Parameters:
Name | Type | Description |
---|---|---|
agent |
ESIAgent | The ESI agent used to make web requests |
groupId |
Number | The group id used in all requests |
Methods
-
info()
-
Return information of an opportunities group. This route expires daily at 11:05.
This makes an HTTP GET request to
/opportunities/groups/{group_id}/
. The route version isv1
.On success, this resolves to details of an opportunities group. An example result is:
{ "connected_groups": [ 100 ], "description": "As a capsuleer...", "group_id": 103, "name": "Welcome to New Eden", "notification": "Completed:<br>Welcome to New Eden", "required_tasks": [ 19 ] }
Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Object>