Skip to content
Permalink
Browse files

Make rates argument driven.

  • Loading branch information...
DavidLemayian committed Feb 1, 2016
1 parent e19d168 commit 08f848a6507aebb93ef3f11e71526d77e6e514c9
Showing with 3 additions and 2 deletions.
  1. +3 −2 index.js
@@ -1,11 +1,12 @@
var request = require('request'),
fs = require('fs');

var url = 'https://openexchangerates.org/api/latest.json'
var url = 'https://openexchangerates.org/api/latest.json';
var app_id = process.argv[2];

request({
url: url,
qs: {'app_id': '31beaa8ba1c14720bd5a8734b937069f'}
qs: {'app_id': app_id}
}, function (error, response, body) {

if (!error && response.statusCode === 200) {

0 comments on commit 08f848a

Please sign in to comment.
You can’t perform that action at this time.