Class: TwoStepCommand

nationscript/requests/command~TwoStepCommand()

Request subclass for building requests to the commands endpoint of the API where the ultimate execution of the represented command must happen in a two-step process - one HTTP request having to be made in preparation mode, and another one in execution mode, using an execution token obtained from that first request.

Constructor

new TwoStepCommand()

Additionally mandates the mode argument.

Methods

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

Returns:

Content of the returned <SUCCESS> tag

Type
Promise.<string>