Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 2.73 KB

Specification.md

File metadata and controls

34 lines (26 loc) · 2.73 KB

Specifications

Example

For example, login interface:

const response = await client.user.login({ account: "xxx@xxx.com", password: "12345678", areaCode: "+1" });

Under normal circumstances, the returned content is:

Name Type Description
status String HTTP status code
responseTime Number Response time in milliseconds
error String Error code, 0 successful, other failures, please refer to: https://coolkit-technologies.github.io/eWeLink-API/#/en/APICenterV2?id=error-codes
msg String Return the specific reason for the error
data Object The parameters obtained from the request are as follows: https://coolkit-technologies.github.io/eWeLink-API/#/en/OAuth2.0https://coolkit-technologies.github.io/eWeLink-API/#/en/APICenterV2, Other method documents also provide explanations

All characters are in a specified format, and the content in the data is returned differently depending on the interface. You can refer to other documents or confirm through the online documentation on the CoolKit Open Platform.

Other documents