Created
May 8, 2017 22:41
-
-
Save dashersw/c7bcb683a960654c7db2b87c617a825b to your computer and use it in GitHub Desktop.
Hassle-free microservices with cote.js — conversion-client.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cote = require('cote'); | |
const requester = new cote.Requester({ name: 'currency conversion requester' }); | |
const request = { type: 'convert', from: 'usd', to: 'eur', amount: 100 }; | |
requester.send(request, (res) => { | |
console.log(res); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment