@researchgate/emailonacid-proxy
v4.0.3
Published
Self-hosted proxy for throttling EoA API requests to 60 per 5 minutes (applicable for all of their plans).
Downloads
10
Keywords
Readme
emailonacid-proxy
Self-hosted proxy for throttling EoA API requests to 60 per 5 minutes (applicable for all of their plans).
Quick Start
- Install the
emailonacid-proxy
:
# yarn
yarn add @researchgate/emailonacid-proxy
# npm
npm add --save @researchgate/emailonacid-proxy
- Run the proxy:
# yarn
yarn emailonacid-proxy
# npx
npx emailonacid-proxy
- Point EoA client to a new url via
baseApiUrl
:
const createClient = require('@researchgate/emailonacid-client');
const client = createClient({
baseApiUrl: '<your proxy address>',
});
Usage
Usage: emailonacid-proxy [options]
Options:
-p, --port <port> Port number (default: 8080)
-r, --requests-per-interval <rpi> Max requests to make per given interval (default: 60)
-i, --interval <interval> Time interval to track requests in milliseconds (default: 300000)
-d, --destination [url] Proxy destination (default: "https://api.emailonacid.com/v5")
-h, --help output usage information