简体   繁体   English

API Gateway Javascript SDK-节点Js示例?

[英]API Gateway Javascript SDK - Node Js Examples?

So The API Gateway Javascript SDK is great to use in the front-end environment, but since the 10+ script files are required to be available globally, this does not play very nicely in an environment where most developers are used to importing npm packages. 因此,API Gateway Javascript SDK非常适合在前端环境中使用,但是由于必须在全球范围内提供10个以上的脚本文件,因此在大多数开发人员习惯于导入npm软件包的环境中,这不能很好地发挥作用。

Is there an example of anyone using the API Gateway SDK in backend Node.js environment? 有没有人在后端Node.js环境中使用API​​ Gateway SDK的示例? Here you cannot put the 10+ scripts in index.html file and I keep getting errors and when I try to make these files globally available for the SDK in Node environment. 在这里,您不能将10个以上的脚本放在index.html文件中,并且在尝试使这些文件在Node环境中对于SDK全局可用时,我总是收到错误消息。

There are two AWS SDKs for JavaScript. 有两个适用于JavaScript的AWS开发工具包。 Use the one for node.js linked in the comment from MaiKaY. 使用MaiKaY注释中链接的node.js链接。 And here is the reference for the API Gateway portion of the SDK - http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/APIGateway.html 这是SDK的API网关部分的参考-http: //docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/APIGateway.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM