Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: kakobrekla on December 29, 2012, 04:34:38 PM



Title: MtGox api v1/v2
Post by: kakobrekla on December 29, 2012, 04:34:38 PM
So, in the past few months I got a bunch of emails saying mtg v0 api is going out of biz with the end of 2012.

Quote
You are currently making use of a system which will be deprecated on Mon 31 Dec 2012 12:00:00 AM GMT:

Old bitcoin withdraw method for withdrawing bitcoins is deprecated. Please use https://mtgox.com/api/1/generic/bitcoin/send_simple or https://mtgox.com/api/2/money/bitcoin/send_simple instead

Please note that after this date, using this system won't be possible anymore and will instead lead to an error.

Thank you for your attention.

System Staff


Right. So we check mtgox and this is the official api site: https://en.bitcoin.it/wiki/MtGox/API/HTTP. No v2 manual there. Ok, we shall go with v1.

The instructions say withdrawal method has two required args. When I satisfy the conditions, I get a message OTP is required. So I implement OTP call as described in the wiki.

Code:
HOTP key 

https://mtgox.com/api/1/generic/hotp_gen

used to generate a new HOTP key ( useful for developers )


It returns an array with 'serial', 'name', 'key' and 'key_base32'.  I can not google my way to how exactly these vars should be processed and used to make a successful withdrawal request.


Anyone got a clue I wonder, cause my crystal ball is broked.



Title: Re: MtGox api v1/v2
Post by: MagicalTux on December 29, 2012, 09:59:18 PM
Hi,

Everything you need to know is there:

http://tools.ietf.org/html/rfc4226 (HOTP)
http://tools.ietf.org/html/rfc6238 (TOTP)

We use the standard defined by Google in term of OTP, which means that our OTP uses 30 secs TOTP on 6 digits (base10). Since Google uses that, a lot of documentation is available on Internet.


Title: Re: MtGox api v1/v2
Post by: jago25_98 on January 07, 2013, 04:31:37 AM
Smpake, the forwarding service to improve MtGox deposits have decided to shut down just in case until clearer. No alternative implementation AFAIK