apitracker-node-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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://git@bitbucket.org/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

Readme

Keywords

none

Package Sidebar

Install

npm i apitracker-node-sdk

Weekly Downloads

0

Version

1.2.0

License

ISC

Unpacked Size

71.2 kB

Total Files

35

Last publish

Collaborators

  • webmons