Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Current JSON/JQuery API script. Help. w/ syntax highlighting
SUBMITTED BY:
Guest
DATE:
Oct. 26, 2013, 9:31 p.m.
FORMAT:
HTML
SIZE:
370 Bytes
Raw
Download
Tweet
HITS:
875
Go to comments
Report
<!DOCTYPE html>
<
html
>
<
head
>
<
title
>
API shit
</
title
>
</
head
>
<
body
>
<
h2
>
JSON API
</
h2
>
<
script
>
$
.
getJSON
(
'http://blockchain.info/ticker'
,
function
(
data
)
{
});
document
.
getElementById
(
prices
[
0
]
.15
m
).
innerHTML
=
JSONObject
.
name
</
script
>
<
p
>
BTC price in USD:
<
span
id
=
"prices[0].15m"
></
span
><
br
/>
</
p
>
</
body
>
</
html
>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus