Home » API » Payment Gateway » Integrate MtGOX API V0 For BitCoins

Integrate MtGOX API V0 For BitCoins

Posted in API, Payment Gateway Tagged , ,

Problem 

Create a working prototype to fetch the bit-coin related information from MtGOX using its http API.  The prototype will then be integrated in an eCommerce application which will use bitcoins as a form of payment currency for its transactions.

Solution Provided 

The MTGOX query needs a nonce generated along with the key and secret key as part of the headers. The data is posted on the API url via curl in PHP and it generates a JSON response.  Some of the methods experimented with the API were getTrades, withdraw, info,ticker, bitcoin_tx.  The success and failure endpoint URLS were defined which captured the status of the transaction done while integrating the API.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>