Bitcoin Forum
April 25, 2024, 12:06:59 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Beginners & Help / Need VB.NET help with Mt Gox API on: July 10, 2011, 06:44:43 PM
Hi Bitcoin Forum. 

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?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!