javascript - how to use Cryptocapital API v4, can't find sdk download link -
cryptocapital.co provides api exchange crypto currency, want access api integrate website, have documentation here - https://api.cryptocapital.co/v4
and have sample code below
var key = '1234567890abcdef'; var secret = '1234567890abcdef'; var command = 'ping'; var nonce = date.now(); var message = command + nonce; var signature = cryptojs.sha1(message + key + secret); var options = { url: 'https://api.cryptocapital.co/v4/ping', headers: { 'key': key, 'message': message, 'signature': signature, 'nonce': nonce } }; request(options, function(err, res, body) { // // ... });
there no download link or reference sdk, when run code says
request not defined
i don't know start in specific api.
please see documentation , me on identifying doing wrong.
it's making assumption using popular request lib make http request.
you can, however, use whatever library like. or don't use library @ all, use https.get.
Comments
Post a Comment