Bitcoin Forum
July 17, 2024, 04:18:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: coinmarketcap api in word press  (Read 1902 times)
fastminer (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
October 19, 2014, 01:19:37 AM
 #1

i am looking to know how i can add api like the one coinmarketcap uses to wordpress page. i would be happy to pay if someone could teach me how to do this.
kingscrown
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


http://fuk.io - check it out!


View Profile WWW
October 19, 2014, 01:30:49 AM
 #2

check how we made it on http://exclusivecoin.pw
not exactly same but i assume thats what u want to get

9inety7even
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
October 19, 2014, 01:40:17 AM
 #3

Here is an example that uses the coinmarketcap API, updating the price every 5 minutes. You can modify the code to put the text wherever you want, as long as you keep the id.

Save the code as demo.html and open it with your browser to see it in action.

Code:
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
function updatePrice() {
    $.getJSON("http://whateverorigin.org/get?url=" + encodeURIComponent("http://coinmarketcap-nexuist.rhcloud.com/api/btc") + "&callback=?", function(data) {
        $("#BTCPrice").append("<center>BTC: $" + data['contents']['price']['usd'] + "</center>")
    })
}
$(document).ready(setInterval(updatePrice(), 300000))
</script>
<div id="BTCPrice" style="height:40px;margin:auto;position:absolute;top:-20;left:0;bottom:0;right:0" />

My address is 14pZ8o1ASSCC7HqjJPU4UFXq9FrewW5GDc.

mailsforcyr
Member
**
Offline Offline

Activity: 132
Merit: 10


View Profile
January 09, 2018, 10:36:03 AM
 #4

is anyone have idea for this request..iam also planing the same..if anyone knows please suggest us
endlasuresh
Full Member
***
Offline Offline

Activity: 756
Merit: 103


View Profile WWW
January 09, 2018, 10:57:54 AM
 #5

Have you checked the wordpress plugins if any exists? I am too wondering to add on my crypto blog. It is good to integrate for such API so readers can find enough information.

For Telugu Translation Contact to me
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!