0.0.2 • Published 6 years ago

awsapigateway v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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);
})