1.0.8 • Published 8 years ago

apigateway4 v1.0.8

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

apigateway4

AWS API Gateway request signing library

npm npm

NPM

About

apigateway4 is a simple SDK for AWS API Gateway request signing with the Signature Version4 Signing Process.

Features

Usage

var agw4  = require('apigateway4')

var requestOpts = {
	uri: 'https://<apigateway_id>.execute-api.us-west-2.amazonaws.com/v1/auth?name=myname&foo=bar'
}

var signer = new agw4.BuildRequestSigner(requestOpts,credentials)

signer.sign()

// example for 'got'
require('got')(requestOpts.uri, requestOpts)
 .then( (html)=> console.log(html.body))
 .catch( (e) => console.log(e))


// example for 'request-promise'
require('request-promise')(requestOpts)
 .then( (html)=> console.log(html))
 .catch( (e) => console.log(e))

see example.js for more details

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago