response-tap
1.0.0
. - Read source for details.
API under active development. Substantially different API after Install
npm install response-tap
Use
var rTap = ;rTap;rTap; //pass a callback. See docs for method specific arguments
About
This is a simple, extensible wrapper around the responseTap API. To learn more about responseTap's call tracking service you can visit their website and sign up for a demo.
Documentation
Official responseTap REST endpoint documentation. Package specific documentation to follow, in the meantime feel free to read the source.
Extend
The global rTap object can easily be extended to fit your specific needs. See the example below. Extend method can take either a string method name and function or an object with functions. See source for more examples.
var rTap = //this method will retrieve the nth call for today using the internal getFullCallRecords methodrTap;
Rate-Limiting
By default the package will not rate limit your requests, but you can easily set a custom rate limit for all requests using the following syntax. This is a lossless limit, all requests will eventually be processed in the order they were executed.
var rTap = ;rTap; //1 request per second
ToDO
Currently all GET
endpoints are available. My current needs to not require any POST
DELETE
or PUT
endpoints, but pull requests are welcome!