apitracker-node-sdk
v1.2.0
Published
This is a API Tracker sdk for Node. The sdk will forward calls to API Tracker proxy and can fall back to the original API if it detects an issue with API Tracker proxy
Downloads
3
Readme
apitracker node sdk
This is a API Tracker sdk for Node. The sdk will forward calls to API Tracker proxy and can fall back to the original API if it detects an issue with API Tracker proxy
API Tracker capture your outbound calls to 3rd party API and let you know when things aren't working. Sign up at https://apitracker.com for a free account
Installation
Select a version that you want to install, e.g. v1.1.0. Run
$ npm install git+ssh://[email protected]/apitracker/apitracker-node-sdk.git#v1.1.0
Getting started
This example shows how to use instantiate the library
- Sign up for an account with apitracker
- Create an api and enter the api hostname, e.g. xkcd.com
- Copy the apitracker proxy hostname, e.g. xxxx.apitracker.net
- Put the following snippet of code, ideally at the top of your program
const apitracker = require('apitracker-node-sdk');
apitracker({
hostmap: {
'xkcd.com': 'de3taun2ysuh4f7iqsbvvbtucrq63oz3.apitracker.network',
}
});
To do
Client side request capture vs proxy Reading config from API Tracker