Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this._request = function(method, options, callback) {
var id = this._id();
var message = jayson.utils.request(method, options, id);
client.options.headers = {
'api-key': apiKey,
'sign': this._sign(message)
};
client.request(method, options, id, function(err, response) {
callback(err, response);
});
};