Stamps API
Stamps.com node.js client
A client for stamps.com API.
Sign up with stamps.com developer program to receive credentials to the API.
Installation
npm install stamps-api
API
Create client
Create client for work with Stamps api.
var Stamps = ;
Auth client
For use most api's you need auth with your Stamps account data
Stamps;
- options - is a object with fields
- auth function has 2 parameter type of bool, if his true make request for get auth token from stamps else use creaditials as auth data(by default false)
- connect - this function have parameter type of object with property isDev for enable dev mode
Exmaple:
Stamps;
Make request
For send requests to stamps use this api after connect and auth. Example get track number.
Stamps;
Run test
Before run test set env variables you stamps auth data:
STAMPS_IDSTAMPS_USERNAMESTAMPS_PASSWORD
npm test