Closed deunlee closed 11 months ago
在免费 API 中,
client.user.login()
不起作用并出现以下错误。免费API仅支持OAuth 2.0方法,因此请将此信息写在README的开头。对于初次使用的用户来说,这似乎很令人困惑。{ "status": 200, "responseTime": 520, "error": 407, "msg": "the path of request is not allowed with appid:<app-id>", "data": {} }
另外,请在自述文件中包含 OAuth 示例链接。 https://github.com/coolkit-carl/eWeLinkOAuthLoginDemo
它不太适合放其他项目的链接,因为它是一个基础库,您应该注意到 在易微联开发者平台创建应用后会提示你可用的API清单,这个已经很明确提示了,另外这个库其实也会给我们付费的企业客户使用,所以对他们来说不算问题。
It is not suitable for linking to other projects because it is a basic library. You should note that after creating an application on the eWeLink developer platform, you will be prompted with a list of available APIs, which is already very clear. In addition, this library will actually be used by our paid enterprise customers, so it is not a problem for them.
In the free API,
client.user.login()
does not work and the following error occurs. The free API only supports OAuth 2.0 method, so please write this information at the beginning of README. It seems confusing for first-time users.Also, please include the OAuth example link in the README. https://github.com/coolkit-carl/eWeLinkOAuthLoginDemo