Bitcoin Forum

Other => Beginners & Help => Topic started by: MagicSnow on April 17, 2014, 06:07:30 PM



Title: OLD
Post by: MagicSnow on April 17, 2014, 06:07:30 PM
OLD


Title: Re: HELP with MintPal API
Post by: sorryforthat on April 17, 2014, 08:51:33 PM
Im sorry if it's the wrong section... i just need a little help with the mintpal api, i want to import basic data from their api to my website and displaying the data in table(for analysis and calculation). i tried alot of things from php javascript etc. but none of them worked.

For ex. BC/BTC info: http://api.mintpal.com/v2/market/stats/BC/BTC

API return:
Code:
{"status":"success","data":{"market_id":"23","code":"BC","exchange":"BTC","last_price":"0.00034903","yesterday_price":"0.00022011","change":"+58.57","24hhigh":"0.00039101","24hlow":"0.00014300","24hvol":"4050.940","top_bid":"0.00034911","top_ask":"0.00035100"}}

i want to display in my website like this(in html):
(ex.)

Thanks!

Do you happen to know anything about Javascript or JSON?


Title: Re: HELP with MintPal API
Post by: MagicSnow on April 17, 2014, 08:53:52 PM
Im sorry if it's the wrong section... i just need a little help with the mintpal api, i want to import basic data from their api to my website and displaying the data in table(for analysis and calculation). i tried alot of things from php javascript etc. but none of them worked.

For ex. BC/BTC info: http://api.mintpal.com/v2/market/stats/BC/BTC

API return:
Code:
{"status":"success","data":{"market_id":"23","code":"BC","exchange":"BTC","last_price":"0.00034903","yesterday_price":"0.00022011","change":"+58.57","24hhigh":"0.00039101","24hlow":"0.00014300","24hvol":"4050.940","top_bid":"0.00034911","top_ask":"0.00035100"}}

i want to display in my website like this(in html):
(ex.)

Thanks!

Do you happen to know anything about Javascript or JSON?
Yes... but all i tried doesn't work


Title: Re: HELP with MintPal API
Post by: sorryforthat on April 17, 2014, 08:57:08 PM
Ok, just wanted to make sure I wasnt going to give you something you didnt understand.

Can you give this a shot

https://github.com/mobnetic/BitcoinChecker/blob/master/DataModule/src/com/mobnetic/coinguardian/model/market/MintPal.java