Advertisement
JudeAustin

Dyoung API Script

Nov 8th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2. function showLTC() {
  3. $json_string = file_get_contents("http://ltc.minebig.com/index.php?page=api&action=getpoolhashrate&api_key=cfb42323336066789e34d6a9bf984371a906ced318904f5c99e5c030bb8b32fa");
  4. $parsed_json = json_decode($json_string, true);
  5. $parsed_data = $parsed_json['getpoolhashrate'];
  6. $parsed_hash = $parsed_data['data'];
  7. echo "".$parsed_hash."\n";
  8. }
  9. ?>
  10.  
  11. Place this where you want the data above to display.
  12. <?php
  13. showLTC();
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement