The information in this topic may be out of date. The current SDK reference guide has moved here.

setApiKey method

Class: BatchClosePlatform: NightwatchLanguage: JavaScript SDK:

Use this method to set your Eyes license key.

To obtain your API key, see How to obtain your API key.


let value = obj.setApiKey(apiKey);


A string that is your API Key.

Return value

Type: BatchClose
The object that called this method. This allows other methods of this class to be appended in a Fluent style.