shoptimiza-auth-header
v1.0.0
Published
Utility to create [Shoptimiza]('https://www.shoptimiza.com') authentication headers
Downloads
1
Readme
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