Advertisement
Guest User

Untitled

a guest
May 22nd, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2. include ("mtgox_api_base.php");
  3. include ("mtgox_private_api.php");
  4. include ("mtgox_public_api.php");
  5.  
  6. //include ("mtgox_api_objects.php");
  7.  
  8. //echo "test";
  9.  
  10. $api = new MtGox_Private_Api();
  11. $api->set_currency('USD');
  12. $api->set_authentication('SSSSSSSSSSSSSSS', 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS');
  13.  
  14.  
  15. // THIS WORKS
  16. $history = $api->get_account_info();
  17. print_r($history);
  18.  
  19.  
  20. //DOES NOT WORK, returns blank page
  21. $address = '14XnxAbrNZkkXRX76MS2S5JnJ1hUbgCs1Y';
  22. $amount_int = '1';
  23.  
  24. $history = $api->withdraw_coins($address, $amount_int);
  25. print_r($history);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement