0.1.0 • Published 8 years ago

apigateway-sdk v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

apigateway-sdk Build Status

Retrieve the JavaScript AWS API Gateway SDK.

Install

$ npm install --save apigateway-sdk

Usage

const apiSdk = require('apigateway-sdk');

apiSdk.config.update({accessKeyId: 'akid', secretAccessKey: 'secret'});

apiSdk({id: '123', stage: 'v1'}).then(data => {
	fs.writeFileSync('apigateway.zip', data);
});

API

apiSdk(options)

Returns a promise for the Buffer.

options

id

Type: string

The API Gateway ID of which you want to download the SDK for.

stage

Type: string

The stage name of which you want to download the SDK for.

apiSdk.config

Returns the aws-sdk config object in order to configure the AWS SDK.

License

MIT © Sam Verschueren