diff options
| author | tv <tv@also> | 2011-08-06 03:09:45 +0200 |
|---|---|---|
| committer | tv <tv@also> | 2011-08-06 03:09:45 +0200 |
| commit | c252c039b4a97758bc18e2e2bc6d393eed941d7d (patch) | |
| tree | 37bd28b5f56252275671d587537963ec7eab730b /btcguild/index.js | |
| parent | 0927b22ba003db142534e5b1bac7f071149719f7 (diff) | |
${btc-stuff} -> btc/
Diffstat (limited to 'btcguild/index.js')
| -rw-r--r-- | btcguild/index.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/btcguild/index.js b/btcguild/index.js deleted file mode 100644 index 1f33db06..00000000 --- a/btcguild/index.js +++ /dev/null @@ -1,20 +0,0 @@ -api_key = process.env.api_key; - -var options = { - host: 'www.btcguild.com', - port: 80, - path: '/api.php?api_key=' + api_key -}; - -http = require('http'); -http.get(options, function(res) { - var data = ''; - res.on('data', function (chunk) { - data += chunk; - }); - res.on('end', function () { - console.log(JSON.parse(data)); - }); -}).on('error', function(e) { - console.error('Error: ' + e.message); -}); |
