[英]How do I use REST API in embedded JavaScript without a Firebase Library?
I'm trying to access the Nest API using REST from an embedded controller that doesn't have a Firebase library installed. 我正在尝试从未安装Firebase库的嵌入式控制器中使用REST访问Nest API。 There is NO way to install a Firebase library and the Nest docs seem to indicate that I should use REST API.
无法安装Firebase库,Nest文档似乎表明我应该使用REST API。 I've gotten pretty far through the authorization process even though I receive a ton of HTTP page data and no json that I can discern.
尽管我收到了大量的HTTP页面数据并且没有可以识别的json,但我已经完成了很长的授权过程。 The docs talk about a wss: web socket but there's sparse information.
文档讨论了wss:Web套接字,但是信息稀疏。
How can I use REST API to send https:// data (I'm using POST) and get the pertinent json data back rather than a huge web page? 如何使用REST API发送https://数据(我正在使用POST)并获取相关的json数据,而不是返回庞大的网页?
I hope this question is clear. 我希望这个问题清楚。 Basically, I don't have a web browser, I have to build everything myself in the embedded system.
基本上,我没有网络浏览器,我必须自己在嵌入式系统中构建所有内容。
假设您已将身份验证令牌的密码替换为密码,则只需使用GET调用https://developer-api.nest.com?auth=AUTH_TOKEN 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.