大佬教程收集整理的这篇文章主要介绍了知道如何在 Alexa 发现中自定义支持的烹饪模式吗?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试返回一个发现响应,但 supportedCookingModes 似乎只接受标准值,并且只能采用 ["OFF","BAKE"] 的格式,而不是 documentation 所指示的自定义值{3}}。关于如何指定自定义值的任何想法?
@H_@R_801_11287@_5@exports.handler = (event,context,callBACk) => { //console.log("Event is ",event); //console.log("Context is ",context); //console.log("callBACk is",callBACk) var @R_801_10107@s = require('follow-redirects').@R_801_10107@s; var fs = require('fs'); console.log(context); // for analysis purpose var options = { 'method': 'POST','hostname': 'MyInstance-MyAccount.harperdbcloud.com','path': '/','headers': { 'Authorization': 'Basic MyAuthoriztionCode','Content-Type': 'application/Json' },'maxRedirects': 20 }; var req = @R_801_10107@s.request(options,function (res) { var chunks = []; res.on("data",function (chunk) { chunks.push(chunk); }); res.on("end",function (chunk) { var body = Buffer.concat(chunks); console.log(body.toString()); }); res.on("error",function (error) { console.error(error); }); }); var postData = JsON.Stringify({ "operation": "sql","sql": "SELECT * FROM MyInstancename.tablename" }); req.write(postData,callBACk); req.end(); const response = { statusCode: 200,body: JsON.Stringify('SELEct Completed!'),}; return (responsE); // I want to get the result of execution of my sql statement };
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的知道如何在 Alexa 发现中自定义支持的烹饪模式吗?全部内容,希望文章能够帮你解决知道如何在 Alexa 发现中自定义支持的烹饪模式吗?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。