1.0.0 • Published 6 years ago
shoptimiza-auth-header v1.0.0
Shoptimiza Auth Header
Utility to create Shoptimiza authentication headers
Install
$ npm install shoptimiza-auth-header
Usage
const {
headerKey,
signGET,
unixTime,
} = require('shoptimiza-auth-header');
var url = 'https://api.shoptimiza.com/something';
var headers = {};
headers[headerKey] = signGET(apiKey, unixTime(), url, sharedSecret);
For more examples check the tests
1.0.0
6 years ago