new OpportunityTasks(agent)
Create a new OpportunityTasks function using the given agent.
Parameters:
| Name | Type | Description |
|---|---|---|
agent |
ESIAgent | The ESI agent |
Methods
-
all()
-
Return a list of opportunities tasks. This route expires daily at 11:05.
This makes an HTTP GET request to
/opportunities/tasks/. The route version isv1.On success, this resolves to a list of opportunities task ids.
Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Array.<Number>>
-
get(id)
-
Create a new OpportunityTask end point targeting the particular effect by
id.Parameters:
Name Type Description idNumber The effect id
Returns:
- Type
- OpportunityTask