Class: SpidyClient

SpidyClient

new SpidyClient() → {SpidyClient}

An interface for getting data from the GW2 Spidy REST API. You shouldn't need to use this interface directly. The Gw2SpidyClient provides a higher level interface that is easier to use.
Source:
Returns:
Type
SpidyClient

Methods

get(endpoint, cb)

Attempts to retrieve JSON data from a specified endpoint, e.g. `/types`.
Parameters:
Name Type Description
endpoint string An endpoint on the GW2 Spidy API
cb SpidyClient~RestGetCallback The callback to invoke when done
Source:

Type Definitions

RestGetCallback(err, json)

This callback is invoked when a GET request to the GW2 Spidy REST API has completed.
Parameters:
Name Type Description
err Error An error object or null (no error)
json string A string of JSON that represents the result
Source: