I'm writing a program that needs to grab info from the Mt. Gox API. However, I can't even get the public info (Ticker Data, Market Depth, etc.). I've tried using (with no success):
Code:
Dim wc As new System.Net.WebClient
wc.DownloadString(New Uri("http://mtgox.com/code/data/ticker.php"))
Below is from a different thread outside the newbies section on this site: The person was able to get the public info though.
Code:
Function PostWebpageData(ByVal url As String, ByVal Data As String) As String
If My.Computer.Network.IsAvailable Then
Dim Client As New Net.WebClient
Return (Client.UploadString(url, Data))
Else
MsgBox("Unable to acess the internet")
End If
End Function
In fact, when I go to http://mtgox.com/code/data/ticker.php in firefox, I get a prompt to download the PHP page, which does have info in it.
Can anybody show me the code needed to get the public data from Mt. Gox's API?