v4.0.0
Previously, the constructor allowed four parameters. The last two (proxyUrl and apiUrl) were undocumented and optional.
var sailthru = require('sailthru-client').createSailthruClient(apiKey, apiSecret, proxyUrl, apiUrl);
Now, callers should provide any optional parameters in an object in the third parameter.
var sailthru = require('sailthru-client').createSailthruClient(apiKey, apiSecret, {
agent: new ProxyAgent(proxyUrl),
apiUrl: 'api.example.com',
});