GoldCoin Talk

Main Category => Technical Discussion => Topic started by: Dayne on June 12, 2013, 09:52:53 PM

Title: CryptoCoinExplorer API
Post by: Dayne on June 12, 2013, 09:52:53 PM
Hey, if somebody could tell me the php/jquery/ajax/etc command that I need to use to fetch data from (for example) http://gld.cryptocoinexplorer.com/chain/Goldcoin/q/totalbc, I can use my skills as a digital native and Google the [beep] out of that and get some form of statistics page up and running.

I'm not a programmer. I just need to know what command I should use, in what language.. jQuery.get? I am not sure, but a snippet of example code to display the contents of the page I linked should more than suffice for me to whip up something.
Title: Re: CryptoCoinExplorer API
Post by: RichG on June 12, 2013, 10:57:42 PM
iFrames?

e.g.

<iframe src="http://gld.cryptocoinexplorer.com/chain/Goldcoin/q/totalbc"/>
Title: Re: CryptoCoinExplorer API
Post by: Dayne on June 13, 2013, 08:46:13 AM
Nooo. I mean, I can do that. And I know html, I could have used that method but that's an obtuse way of going about it, it's better if I actually fetch the data on the page, rather than displaying the page itself.
Title: Re: CryptoCoinExplorer API
Post by: twobits on June 13, 2013, 01:44:55 PM
Hey, if somebody could tell me the php/jquery/ajax/etc command that I need to use to fetch data from (for example) http://gld.cryptocoinexplorer.com/chain/Goldcoin/q/totalbc, I can use my skills as a digital native and Google the [beep] out of that and get some form of statistics page up and running.

I'm not a programmer. I just need to know what command I should use, in what language.. jQuery.get? I am not sure, but a snippet of example code to display the contents of the page I linked should more than suffice for me to whip up something.

Well since you mention php, php can be a bit odd here, as it depends on how the php you are using was built.    If it was compiled with the option to support urls in the file commands, which is not unusual.

$page = file_get_contents('http://gld.cryptocoinexplorer.com/chain/Goldcoin/q/totalbc');

If not then the next usual case is to use the curl binding to do it.