new Rarities() → {Rarities}
An interface for interacting with the Rarities portion of the GW2 Spidy
REST API.
- Since:
- 0.2.0
- Source:
Returns:
- Type
- Rarities
Methods
-
get(cb)
-
Issue a request to the REST API for a list of the possible rarities, e.g. "legendary".
Parameters:
Name Type Description cb
Rarities~RaritiesCacllback The callback to invoke when done - Source:
Type Definitions
-
RaritiesCallback(err, response)
-
This callback is invoked when a request to get the list of rarities has completed.
Parameters:
Name Type Description err
Error An error or null (no error) response
RaritiesListResponse An instance of RaritiesListResponse - Source: