awsapigateway

0.0.2 • Public • Published

awsapigateway

aws api gateway

Install

npm install awsapigateway

Quick Start

const APIGatewayService = require('apigateway');
const apigw = new APIGatewayService({accessKeyId: 'myKey', secretAccessKey: 'mySercret'});
 
const uri = encodeURI('https://xxxx.execute-api.cn-northwest-1.amazonaws.com.cn/dev');
const options = {
  encoding: null,
  headers: {
    'Content-Type': 'application/json'
  },
  body: "{foo: 'bar'}"
 
}
apigw.post(uri, options, (err, res)=>{
  console.log(res.body);
})

Readme

Keywords

Package Sidebar

Install

npm i awsapigateway

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

3.8 kB

Total Files

4

Last publish

Collaborators

  • guanbo