2.1.14 • Published 6 years ago

wmt-marketplace-auth v2.1.14

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

wmt-marketplace-auth

npm license github-issues

Generate the authentication headers required by Walmart Marketplace API.

nodei.co

stars forks

npm.io npm.io

Features

  • Returns the required authentication headers for Walmart Marketplace API.
  • Defaults the Accept and Content-Type headers to application/json, which can be changed to application/xml if XML is preferred.
  • Generates a UUID for the CorrelationId if one is not specified for the request.

Outputs Authentication headers as an object.

{
  "WM_SVC.NAME": "Walmart Marketplace",
  "WM_QOS.CORRELATION_ID": "1234hfvgtr",
  "Authorization": "Basic E1EPWiqwuLYceSVr2XGmlj...",
  "Accept": "application/json",
  "Content-Type": "application/x-www-form-urlencoded"
}
{
  "WM_SVC.NAME": "Walmart Marketplace",
  "WM_QOS.CORRELATION_ID": "1234hfvgtr",
  "Authorization": "Basic E1EPWiqwuLYceSVr2XGmlj...",
  "Accept": "application/json",
  "Content-Type": "application/json",
  "Access": "eyJraWQiOiIwNjI..."
}

Options

Change the Accept or Content-Type headers from JSON to XML.

headers.Accept = 'application/xml';
headers.ContentType = 'application/xml';

Install

npm install --save wmt-marketplace-auth

Scripts

  • npm run build : rimraf ./lib/ && tsc -p .

Dependencies

PackageVersionDev
uuid3.2.1
ts-node5.0.1
typescript2.8.1
tslint5.9.1
mocha5.0.5
chai4.1.2
nyc11.6.0
rimraf2.6.2
@types/mocha5.0.0
@types/chai4.1.2
@types/node9.6.2
@types/uuid3.4.3
node-readme0.1.9

Contributing

We are always excited when we can make our projects open source and allow contributors to build and work on these components. To make this possible, there are a few things we kindly ask all contributors to understand and follow. Please review the Contributing Guide.

Author

Kane McConnell kane@makanal.eu

License

2.1.14

6 years ago

2.1.13

6 years ago

2.1.12

6 years ago

2.1.11

6 years ago

2.1.10

6 years ago

2.1.9

6 years ago

2.1.8

6 years ago

2.1.7

6 years ago

2.1.6

6 years ago

2.1.5

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.1-dev

7 years ago