Class Instantiation

Default region of this library is us. If your are in a different one, you must specify region parameter or error 400/401 will be returned.

Using email and password

  const connection = new ewelink({
    email: '<your ewelink email>',
    password: '<your ewelink password>',
    region: '<your ewelink region>',
  });

Using access token and api key

  const connection = new ewelink({
    at: '<valid access token>',
    apiKey: '<valid api key>',
    region: '<your ewelink region>',
  });
  • If you don't know your region, use getRegion method
  • To get your access token and api key, use getCredentials method
Last update on: November 29th, 2019