Rung ─ Dollar quotation extension
This is a demo extension to Rung showing how to be alerted when dollar in a specific currency be lower or equal to a specified value.
Full source
const create run = ;const OneOf Money = ;const Bluebird = ;const agent = ;const promisifyAgent = ;const path = ; const request = ; { const currency value = contextparams; return request ;} const params = currency: description: 'Currency to check dollar quotation' type: default: 'BRL' value: description: 'When lower or equal to this, we\'ll tell you' type: Money default: 30 ; const app = ;app; moduleexports = app;
When you clone this repo and install the packages, you can do node index.js
to start the Query Wizard via CLI. We
integrate with a third-party API called fixer.io
.
You'll get this screen and the result:
If you get a valid value as output, an alert would be generated. Otherwise, nothing would happen.