提交 50f75a53 编写于 作者: D dingbo

docs: node.js

上级 1fde230c
...@@ -2,7 +2,7 @@ const { options, connect } = require("td2.0-rest-connector"); ...@@ -2,7 +2,7 @@ const { options, connect } = require("td2.0-rest-connector");
async function test() { async function test() {
options.url = process.env.TDENGINE_CLOUD_URL; options.url = process.env.TDENGINE_CLOUD_URL;
options.token = process.env.TDENGINE_CLOUD_TOKEN; options.query = { token: process.env.TDENGINE_CLOUD_TOKEN };
let conn = connect(options); let conn = connect(options);
let cursor = conn.cursor(); let cursor = conn.cursor();
try { try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册