shoptimiza-auth-header

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i shoptimiza-auth-header

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

8.55 kB

Total Files

6

Last publish

Collaborators

  • p.revington