Bitcoin Forum
May 13, 2024, 01:36:41 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Enter API Info  (Read 1177 times)
jailee (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile WWW
March 10, 2015, 03:33:21 PM
 #1

I want to put this API info on a site so as to recieve all the available data. http://www.cryptocoincharts.info/tools/api
How do I do that?
1715607401
Hero Member
*
Offline Offline

Posts: 1715607401

View Profile Personal Message (Offline)

Ignore
1715607401
Reply with quote  #2

1715607401
Report to moderator
1715607401
Hero Member
*
Offline Offline

Posts: 1715607401

View Profile Personal Message (Offline)

Ignore
1715607401
Reply with quote  #2

1715607401
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
CryptoDatabase
Legendary
*
Offline Offline

Activity: 1596
Merit: 1003


https://cryptodatabase.net


View Profile WWW
March 10, 2015, 07:30:43 PM
 #2

I want to put this API info on a site so as to recieve all the available data. http://www.cryptocoincharts.info/tools/api
How do I do that?

What specifically are you looking to add? Each api they offer has example codes listed for them.

For example if you wanted to list all of the coins they track you would use the following code,

Code:
<?php
// fetch data
$curl curl_init();
curl_setopt($curlCURLOPT_URL"http://api.cryptocoincharts.info/listCoins");
curl_setopt($curlCURLOPT_RETURNTRANSFERtrue);
$rawData curl_exec($curl);
curl_close($curl);

// decode to array
$data json_decode($rawData);

// show data
echo "<pre>";
foreach ($data as $row) echo $row->id." - ".$row->name."\n";
echo "</pre>";
?>


P.S. Big shout out to CryptoCoinCharts, I use their API for Crypto Database to show pricing information and to track coins highs and lows.
jailee (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile WWW
March 10, 2015, 11:32:44 PM
 #3

I want to put this API info on a site so as to recieve all the available data. http://www.cryptocoincharts.info/tools/api
How do I do that?

What specifically are you looking to add? Each api they offer has example codes listed for them.

For example if you wanted to list all of the coins they track you would use the following code,

Code:
<?php
// fetch data
$curl curl_init();
curl_setopt($curlCURLOPT_URL"http://api.cryptocoincharts.info/listCoins");
curl_setopt($curlCURLOPT_RETURNTRANSFERtrue);
$rawData curl_exec($curl);
curl_close($curl);

// decode to array
$data json_decode($rawData);

That doesnt do anything except put code on my page

// show data
echo "<pre>";
foreach ($data as $row) echo $row->id." - ".$row->name."\n";
echo "</pre>";
?>


P.S. Big shout out to CryptoCoinCharts, I use their API for Crypto Database to show pricing information and to track coins highs and lows.
jailee (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile WWW
March 11, 2015, 12:59:03 AM
 #4

Nothing happens, that just puts code on my page Undecided
CryptoDatabase
Legendary
*
Offline Offline

Activity: 1596
Merit: 1003


https://cryptodatabase.net


View Profile WWW
March 11, 2015, 01:38:43 AM
 #5

Nothing happens, that just puts code on my page Undecided

What information are you wanting the information to show? For example, 'Joe wants to find the price between BTC and LTC what does he do?' or no?
jailee (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile WWW
March 13, 2015, 12:38:54 PM
 #6

I just want to get it to show ANY information. That would be nice. WHERE DO I PLUG IN THE API INFORMATION? on that website there is this.
List coins
Use this function to list all coins with their data which are available on cryptocoincharts.

URL: GET http://api.cryptocoincharts.info/listCoins
RESULT: array with coins objects
id: coin ID
name: coin name
website: URL of website if available
price_btc: last traded price of best market
volume_btc: 24h trading volume recalculated to BTC
PHP example
   // fetch data
   $curl = curl_init();
   curl_setopt($curl, CURLOPT_URL, "http://api.cryptocoincharts.info/listCoins");
   curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
   $rawData = curl_exec($curl);
   curl_close($curl);
   
   // decode to array
   $data = json_decode($rawData);
   
   // show data
   echo "<pre>";
   foreach ($data as $row) echo $row->id." - ".$row->name."\n";
   echo "</pre>";


Where do I put this URL: GET http://api.cryptocoincharts.info/listCoins
CryptoDatabase
Legendary
*
Offline Offline

Activity: 1596
Merit: 1003


https://cryptodatabase.net


View Profile WWW
March 13, 2015, 06:16:54 PM
 #7

I just want to get it to show ANY information. That would be nice. WHERE DO I PLUG IN THE API INFORMATION? on that website there is this.
List coins
Use this function to list all coins with their data which are available on cryptocoincharts.

URL: GET http://api.cryptocoincharts.info/listCoins
RESULT: array with coins objects
id: coin ID
name: coin name
website: URL of website if available
price_btc: last traded price of best market
volume_btc: 24h trading volume recalculated to BTC
PHP example
   // fetch data
   $curl = curl_init();
   curl_setopt($curl, CURLOPT_URL, "http://api.cryptocoincharts.info/listCoins");
   curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
   $rawData = curl_exec($curl);
   curl_close($curl);
   
   // decode to array
   $data = json_decode($rawData);
   
   // show data
   echo "<pre>";
   foreach ($data as $row) echo $row->id." - ".$row->name."\n";
   echo "</pre>";


Where do I put this URL: GET http://api.cryptocoincharts.info/listCoins

The example tells you. All of their examples are fully functioning code that you place <?php ?> tags around and place anywhere on a .php file.
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!