简体   繁体   English

没有Firebase库的情况下,如何在嵌入式JavaScript中使用REST API?

[英]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.

相关问题 如何在没有服务器的情况下在本地使用 Javascript 库? - How do I use a Javascript library locally without a server? 如何使用Javascript库将WP REST API与自定义端点一起使用? - How to use the WP REST API with a custom endpoint using the Javascript library? 如何在没有嵌入 html 的 javascript 的情况下使用 onkeypress? - How can I use onkeypress without javascript embedded into the html? 如何自动验证Google javascript API? REST API - how do I auto authenticate google javascript api ? REST api 如何在Firebase身份验证和Firebase中使用Javascript Promise链接? - How do I use Javascript Promise Chaining with Firebase Authentication and Firebase? 如何使用同一个javascript库的两个版本而不会在同一页面中出现函数? - How do I use two versions of the same javascript library without bleeding functions in the same page? 如何在JavaScript中使用简单的REST API - How do you use a simple REST API’s with JavaScript 如何在没有 JavaScript 库的情况下检测过渡结束? - How do I detect a transition end without a JavaScript library? 如何为api处理javascript / clojurescript包装器库? - How do I approach a javascript/clojurescript wrapper library for an api? 如何在外部Javascript文件中使用Firebase - How do I use Firebase in an external Javascript file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM