Advertisement
Guest User

sigh

a guest
Oct 26th, 2015
1,515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2. class Keks extends CI_Controller {
  3.  
  4.     public function index()
  5.     {
  6.         require_once(APPPATH . 'views/header.inc.php');
  7.             include(APPPATH . 'views/breadcrumbs.inc.php');
  8.            
  9.             use Coinbase\Wallet\Client;
  10.             use Coinbase\Wallet\Configuration;
  11.            
  12.             $apiKey = 'pub';
  13.             $apiSecret = 'priv';
  14.             $configuration = Configuration::apiKey($apiKey, $apiSecret);
  15.             $client = Client::create($configuration);
  16.             $spotPrice = $client->getSpotPrice();
  17.             echo $spotPrice;
  18.     }
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement