Class: VersionRequest

nationscript/requests/misc~VersionRequest()

Request subclass for making requests to the version endpoint of the API.

Constructor

new VersionRequest()

mandates the a argument and sets it.

Methods

(async) send() → {Promise.<number>}

Calls the raw function and passes its return value through the streamToString function, converting the text response to a simple number before returning that.

Returns:

The current version of the API

Type
Promise.<number>