Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Keks extends CI_Controller {
- public function index()
- {
- require_once(APPPATH . 'views/header.inc.php');
- include(APPPATH . 'views/breadcrumbs.inc.php');
- use Coinbase\Wallet\Client;
- use Coinbase\Wallet\Configuration;
- $apiKey = 'pub';
- $apiSecret = 'priv';
- $configuration = Configuration::apiKey($apiKey, $apiSecret);
- $client = Client::create($configuration);
- $spotPrice = $client->getSpotPrice();
- echo $spotPrice;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement