1.0.0 • Published 6 years ago

shoptimiza-auth-header v1.0.0

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
6 years ago

pipeline status coverage report

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