How to use the jayson.utils function in jayson

To help you get started, we’ve selected a few jayson examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github changelly / api-changelly / lib.js View on Github external
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);
      });
    };