Code Monkey home page Code Monkey logo

Comments (7)

 avatar commented on June 25, 2024 1

The 1.0.2 to be released supports CommonJS. I need some time for a complete test. If you are willing to try it out,

You can add https://github.com/coolkit-carl/ewelink-api-next/tree/main/dist These four files add https://github.com/coolkit-carl/ewelink-api-next/blob/main/package.json Copy this file to your node_modules, delete the content from the previous 'dist'.

image

Then you can use it, like this:

const eWeLink = require('ewelink-api-next').default

const client = new eWeLink.WebAPI({
    appId: 'xxx',
    appSecret: 'xxx',
    region: 'eu',
    logObj: eWeLink.createLogger('eu'),
  })

;(async () => {
  let response = await client.user.login({
    account: 'xxx',
    password: 'xxx',
    areaCode: '+1',
  })
  console.info(JSON.stringify(response))
})()

from ewelink-api.

nareso avatar nareso commented on June 25, 2024

Hi carl

Thanks for the information.

We are facing a problem with my own APPID as #220 (comment)

Please tell us how to solve the error that appears when setDevice method.

from ewelink-api.

 avatar commented on June 25, 2024

This is an example of eWeLink OAuth2.0 login:https://github.com/coolkit-carl/eWeLinkOAuthLoginDemo

from ewelink-api.

antonioGabrielGomes avatar antonioGabrielGomes commented on June 25, 2024

@coolkit-carl This new library https://www.npmjs.com/package/ewelink-api-next its broken : Error [ERR_REQUIRE_ESM]: require() of ES Module!! ewelink-api-next/dist/utils/index.js

from ewelink-api.

PhilETaylor avatar PhilETaylor commented on June 25, 2024

Did you miss this bit in the readme?

ScreenShot-2023-08-22-13 59 39

from ewelink-api.

antonioGabrielGomes avatar antonioGabrielGomes commented on June 25, 2024

Did you miss this bit in the readme?

ScreenShot-2023-08-22-13 59 39

I know that, but at the moment I can't use type module;

from ewelink-api.

dreamDeveloper1203 avatar dreamDeveloper1203 commented on June 25, 2024

Hi,
As a skilled back end developer, I have a rich experience in API development using node.js.
I saw your job post in upwork.
I wanna work with you.
Please contact me.
Thank you.

from ewelink-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.