Commit c9f2262d by Vitalik Ovcharenko

Add support proxy

parent 12338e71
......@@ -16,6 +16,8 @@ function ClearbitClient (config) {
this.key = config.key || process.env.CLEARBIT_KEY;
assert(!!this.key, 'An API key must be provided');
this.proxy = config.proxy || null;
this.Company = require('./enrichment/company').Company(this);
this.Person = require('./enrichment/person').Person(this);
this.Enrichment = require('./enrichment').Enrichment(this);
......@@ -71,7 +73,8 @@ ClearbitClient.prototype.request = function (options) {
timeout: timeout,
username: this.key,
password: '',
user_agent: 'ClearbitNode/v' + pkg.version
user_agent: 'ClearbitNode/v' + pkg.version,
proxy: this.proxy
}
)
.bind(this)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment