Skip to content

v4.0.0

Choose a tag to compare

@ben833 ben833 released this 29 Dec 22:05
· 25 commits to master since this release
dde8da5

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',
});