Author

Topic: Tradehill API - {"error":"Not logged in."} (Read 1357 times)

hero member
Activity: 566
Merit: 500
July 02, 2011, 08:12:06 PM
#5
you also have to send the request as a POST

for example (VB .Net):

Used to move coins from your MTGox account to your wallet

Code:
        Dim postString As String
        Dim postArray() As Byte

        postString = "name=" & username & "&pass=" & password & "&group1=BTC" & "&btca= " & address & "&amount=" & amount
        postArray = System.Text.Encoding.GetEncoding(1252).GetBytes(postString)

        myURL = "https://mtgox.com/code/withdraw.php?"

        winHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
        winHttpReq.settimeouts(60000, 60000, 60000, 60000)
        winHttpReq.Open("POST", myURL, False)
        winHttpReq.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
        winHttpReq.Send(postArray)
        html = winHttpReq.responseText
newbie
Activity: 54
Merit: 0
You need to have your account activated by email, and then you'll be able to connect to the test api urls only, with your email for both username and password.
Forgot the latter explained in your activation email.
Now I can get my balance and orders, but then the format is too different from mtgox for a simple String transform as with exchangebitoins.com + all numbers are Strings.
I guess 'm up for loading a JsonObject and doing the fitting in memory. Any other idea?
newbie
Activity: 52
Merit: 0
This is still happening to me, anyone else?
newbie
Activity: 54
Merit: 0
I suppose the authenticated API was down before the announcement was made.
Looking forward to testing some more.
newbie
Activity: 54
Merit: 0
Hi,

I'm having trouble using the Tradehill test APIs.
I'm using a .Net Client, ServicePointManager.ServerCertificateValidationCallback was set to a true returning delegate to bypass SSL issue.

No pb retrieving the Ticker with a Get request:{"ticker": {"sell": "11.9999000000", "buy": "61.0000000000", "last": "11.9999", "vol": "0", "high": "0", "low": "0"}}

But when posting to https://api-test.tradehill.com/APIv1/USD/GetOrders with name=myemail and pass=mypwd I get {"error":"Not logged in."}
Similar Bot works fine on getOrders, buyBTC and sellBTC on MtGox API

Has anyone experienced that problem?
Any successful attempts?

Thanks in advance for your advices.
Jump to: