Created
April 26, 2013 23:58
-
-
Save ralphtheninja/5471228 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <body> | |
| </body> | |
| <script src=./mtgox.js></script> | |
| </html> |
This file contains hidden or 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
| function httpGet(theUrl) { | |
| var xmlHttp = new XMLHttpRequest(); | |
| xmlHttp.open( "GET", theUrl, false ); | |
| xmlHttp.send( null ); | |
| return xmlHttp.responseText; | |
| } | |
| document.write(httpGet("https://data.mtgox.com/api/2/BTCUSD/money/ticker")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment