summaryrefslogtreecommitdiffstats
path: root/btc/btcguild/index.js
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-24 17:53:11 +0200
committermakefu <github@syntax-fehler.de>2011-08-24 17:53:11 +0200
commitf23d4436239ca9d2528b2ddfc7b6859a253d22e7 (patch)
treef28ec3fd84186b9725ec271a16513c5d80f73293 /btc/btcguild/index.js
parent14786b561f054a8ffac26eb4f3f66921a1e37e53 (diff)
parentc66cb75478976f4bbafb7eb6ecbfda502a4bbef2 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'btc/btcguild/index.js')
-rw-r--r--btc/btcguild/index.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/btc/btcguild/index.js b/btc/btcguild/index.js
deleted file mode 100644
index 1f33db06..00000000
--- a/btc/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);
-});